[mlpack-git] master: This is no longer necessary. (dee2c82)
gitdub at mlpack.org
gitdub at mlpack.org
Wed Oct 5 10:25:31 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/a2d45ebc93d175602500df8136d54328399e40a8...dee2c8298495710150555cae0216807689eec2df
>---------------------------------------------------------------
commit dee2c8298495710150555cae0216807689eec2df
Author: Ryan Curtin <ryan at ratml.org>
Date: Wed Oct 5 10:25:31 2016 -0400
This is no longer necessary.
>---------------------------------------------------------------
dee2c8298495710150555cae0216807689eec2df
CMake/ModifyMatlabPathdef.cmake | 25 -------------------------
1 file changed, 25 deletions(-)
diff --git a/CMake/ModifyMatlabPathdef.cmake b/CMake/ModifyMatlabPathdef.cmake
deleted file mode 100644
index c05b3f8..0000000
--- a/CMake/ModifyMatlabPathdef.cmake
+++ /dev/null
@@ -1,25 +0,0 @@
-# Our goal is to make sure that the toolbox/mlpack directory is in the MATLAB
-# default path. It is possible that that directory is already in the path, so
-# we must consider that possibility too.
-#
-# This script assumes that ${MATLAB_ROOT} is set and writes the (potentially)
-# modified file to ${PATHDEF_OUTPUT_FILE}.
-
-# This could potentially be incorrect for older versions of MATLAB.
-file(READ "${MATLAB_ROOT}/toolbox/local/pathdef.m" PATHDEF)
-
-string(REGEX MATCH "matlabroot,'/toolbox/mlpack:',[ ]*..." MLPACK_PATHDEF
- "${PATHDEF}")
-
-if("${MLPACK_PATHDEF}" STREQUAL "")
- # The MLPACK toolbox does not exist in the path. Therefore we have to modify
- # the file.
- string(REPLACE "%%% END ENTRIES %%%"
- "matlabroot,'/toolbox/mlpack:', ...\n%%% END ENTRIES %%%" MOD_PATHDEF
- "${PATHDEF}")
-
- file(WRITE "${PATHDEF_OUTPUT_FILE}" "${MOD_PATHDEF}")
-else()
- # Write unmodified file.
- file(WRITE "${PATHDEF_OUTPUT_FILE}" "${PATHDEF}")
-endif()
More information about the mlpack-git
mailing list