summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-11 18:21:41 (GMT)
committerBrad King <brad.king@kitware.com>2019-02-11 18:21:41 (GMT)
commit3ff5a43c499c74715a282e782f4191d4420c9c73 (patch)
tree273afd0032810f5b10b4364dd947e74868bd14ce /Modules
parent633b3145c0e4d918f53272dab3358867bc252b0b (diff)
parent40176749bc2243adb4acc8c53c902f6c349da24b (diff)
downloadCMake-3ff5a43c499c74715a282e782f4191d4420c9c73.zip
CMake-3ff5a43c499c74715a282e782f4191d4420c9c73.tar.gz
CMake-3ff5a43c499c74715a282e782f4191d4420c9c73.tar.bz2
Merge branch 'FindMatlab-version-empty' into release-3.14
Merge-request: !2949
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindMatlab.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake
index 8544653..3547642 100644
--- a/Modules/FindMatlab.cmake
+++ b/Modules/FindMatlab.cmake
@@ -725,7 +725,7 @@ function(matlab_get_version_from_matlab_run matlab_binary_program matlab_list_ve
file(REMOVE "${_matlab_temporary_folder}/matlabVersionLog.cmaketmp")
set(index -1)
- string(FIND ${_matlab_version_from_cmd} "ans" index)
+ string(FIND "${_matlab_version_from_cmd}" "ans" index)
if(index EQUAL -1)
if(MATLAB_FIND_DEBUG)
@@ -735,7 +735,7 @@ function(matlab_get_version_from_matlab_run matlab_binary_program matlab_list_ve
else()
set(matlab_list_of_all_versions_tmp)
- string(SUBSTRING ${_matlab_version_from_cmd} ${index} -1 substring_ans)
+ string(SUBSTRING "${_matlab_version_from_cmd}" ${index} -1 substring_ans)
string(
REGEX MATCHALL "ans[\r\n\t ]*=[\r\n\t ]*'?([0-9]+(\\.[0-9]+)?)"
matlab_versions_regex