summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-12-14 15:46:19 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-12-14 15:46:29 (GMT)
commita76bb5f865cdc2234bf1bf96459511adb9a063f6 (patch)
tree98eb6d8743bce9ce6aafe521f68983798063cffd /Modules
parent146c75a557e62cf4bbc681dd9c9b5c0efd722464 (diff)
parent0f6e9d06585fd560bc6cb5626037143f2cd32e98 (diff)
downloadCMake-a76bb5f865cdc2234bf1bf96459511adb9a063f6.zip
CMake-a76bb5f865cdc2234bf1bf96459511adb9a063f6.tar.gz
CMake-a76bb5f865cdc2234bf1bf96459511adb9a063f6.tar.bz2
Merge topic 'FindMatlab-version' into release-3.28
0f6e9d0658 FindMatlab: Fix processing of multiple versions from Windows Registry Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9074
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 45935cf..b90a45f 100644
--- a/Modules/FindMatlab.cmake
+++ b/Modules/FindMatlab.cmake
@@ -486,10 +486,10 @@ function(matlab_extract_all_installed_versions_from_registry win64 matlab_versio
if(_reg)
- string(REGEX MATCHALL "([0-9]+\\.[0-9]+)" _versions_regex ${_reg})
+ string(REGEX MATCHALL "([0-9]+\\.[0-9]+)" _versions_regex "${_reg}")
foreach(match IN LISTS _versions_regex)
- string(REGEX MATCH "([0-9]+\\.[0-9]+)" current_match ${match})
+ string(REGEX MATCH "([0-9]+\\.[0-9]+)" current_match "${match}")
if(NOT CMAKE_MATCH_1)
continue()