diff options
author | Brad King <brad.king@kitware.com> | 2023-12-14 15:33:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-12-14 15:35:56 (GMT) |
commit | 0f6e9d06585fd560bc6cb5626037143f2cd32e98 (patch) | |
tree | 47598e11720e84534cde7136a6bd69d1a74e34e0 /Modules | |
parent | ef64c118deaa71464864db38b45a34d2c7358e8b (diff) | |
download | CMake-0f6e9d06585fd560bc6cb5626037143f2cd32e98.zip CMake-0f6e9d06585fd560bc6cb5626037143f2cd32e98.tar.gz CMake-0f6e9d06585fd560bc6cb5626037143f2cd32e98.tar.bz2 |
FindMatlab: Fix processing of multiple versions from Windows Registry
Fix logic from commit fff5c1507e (FindMatlab: refactor: use registry
query instead of execute_process, 2023-09-14, v3.28.0-rc1~82^2~7)
to work when multiple versions are found in the registry.
Issue: #25497
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindMatlab.cmake | 4 |
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() |