mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 10:18:34 -06:00
Merge topic 'FindMatlab-version'
0f6e9d0658 FindMatlab: Fix processing of multiple versions from Windows Registry
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9074
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user