diff options
author | Brad King <brad.king@kitware.com> | 2023-12-14 13:29:51 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-12-14 13:30:00 (GMT) |
commit | 3d1fbc4f6bb31114ac74111f6d02093e5a7b611b (patch) | |
tree | 6b98a50b58081a708571b9cad169882cb2bff55f /Modules | |
parent | db5716385eaeee99fb839992dd74e4bc1680d1b5 (diff) | |
parent | ef64c118deaa71464864db38b45a34d2c7358e8b (diff) | |
download | CMake-3d1fbc4f6bb31114ac74111f6d02093e5a7b611b.zip CMake-3d1fbc4f6bb31114ac74111f6d02093e5a7b611b.tar.gz CMake-3d1fbc4f6bb31114ac74111f6d02093e5a7b611b.tar.bz2 |
Merge topic 'FindMatlab-version' into release-3.28
ef64c118de FindMatlab: Fix regression on Windows Registry lookup failure
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9070
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindMatlab.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake index 639cc5f..45935cf 100644 --- a/Modules/FindMatlab.cmake +++ b/Modules/FindMatlab.cmake @@ -500,7 +500,7 @@ function(matlab_extract_all_installed_versions_from_registry win64 matlab_versio VALUE "MATLABROOT" ) - _Matlab_VersionInfoXML(${_reg} _matlab_version_tmp) + _Matlab_VersionInfoXML("${_reg}" _matlab_version_tmp) if(NOT "${_matlab_version_tmp}" STREQUAL "unknown") list(APPEND matlabs_from_registry ${_matlab_version_tmp}) endif() @@ -1364,7 +1364,7 @@ function(_Matlab_get_version_from_root matlab_root matlab_or_mcr matlab_known_ve ${_matlab_main_real_path_tmp} CACHE INTERNAL "internal matlab location for the discovered version") - _Matlab_VersionInfoXML(${matlab_root} _matlab_version_tmp) + _Matlab_VersionInfoXML("${matlab_root}" _matlab_version_tmp) if(NOT "${_matlab_version_tmp}" STREQUAL "unknown") # at least back to R2016 VersionInfo.xml exists set(matlab_list_of_all_versions ${_matlab_version_tmp}) @@ -1392,7 +1392,7 @@ function(_Matlab_get_version_from_root matlab_root matlab_or_mcr matlab_known_ve # MCR # we cannot run anything in order to extract the version. We assume that the file # VersionInfo.xml exists under the MatlabRoot, we look for it and extract the version from there - _Matlab_VersionInfoXML(${matlab_root} _matlab_version_tmp) + _Matlab_VersionInfoXML("${matlab_root}" _matlab_version_tmp) if(NOT "${_matlab_version_tmp}" STREQUAL "unknown") set(Matlab_VERSION_STRING_INTERNAL ${_matlab_version_tmp} CACHE INTERNAL "Matlab version (automatically determined)") endif() @@ -1481,7 +1481,7 @@ function(_Matlab_find_instances_macos matlab_roots) string(REPLACE "." "" _matlab_current_version_without_dot "${_matlab_current_version}") set(_matlab_base_path "/Applications/MATLAB_${_matlab_current_release}.app") - _Matlab_VersionInfoXML(${_matlab_base_path} _matlab_version_tmp) + _Matlab_VersionInfoXML("${_matlab_base_path}" _matlab_version_tmp) if(NOT "${_matlab_version_tmp}" STREQUAL "unknown") set(_matlab_current_version ${_matlab_version_tmp}) endif() |