diff options
author | Raffi Enficiaud <raffi.enficiaud@mines-paris.org> | 2015-05-29 15:44:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-01 13:24:06 (GMT) |
commit | 8444809c47b0c2d6b9b2b57bd62d9a51fc5fa498 (patch) | |
tree | 4e7b0dccb695f5b8086256061e894a75e790faae /Modules/FindMatlab.cmake | |
parent | 5752e558053261bdefc6294d9f13918e1233cd9e (diff) | |
download | CMake-8444809c47b0c2d6b9b2b57bd62d9a51fc5fa498.zip CMake-8444809c47b0c2d6b9b2b57bd62d9a51fc5fa498.tar.gz CMake-8444809c47b0c2d6b9b2b57bd62d9a51fc5fa498.tar.bz2 |
FindMatlab: fix reconfiguration of Matlab_ROOT_DIR
Diffstat (limited to 'Modules/FindMatlab.cmake')
-rw-r--r-- | Modules/FindMatlab.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake index 939f796..028bf5a 100644 --- a/Modules/FindMatlab.cmake +++ b/Modules/FindMatlab.cmake @@ -134,7 +134,8 @@ # returns the suffix to be used for the mex files # (platform/architecture dependant) # :command:`matlab_get_version_from_matlab_run` -# returns the version of Matlab, given the full directory of the Matlab program. +# returns the version of Matlab, given the full directory of the Matlab +# program. # # # Known issues @@ -1064,7 +1065,7 @@ if(Matlab_ROOT_DIR) endif() else() # NOTFOUND indicates the code below to search for the version automatically - if(NOT DEFINED Matlab_VERSION_STRING_INTERNAL) + if("${Matlab_VERSION_STRING_INTERNAL}" STREQUAL "") list(APPEND _matlab_possible_roots "NOTFOUND" ${Matlab_ROOT_DIR}) # empty version else() list(APPEND _matlab_possible_roots ${Matlab_VERSION_STRING_INTERNAL} ${Matlab_ROOT_DIR}) # cached version |