mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-12 23:43:59 +03:00
FindMatlab: Remove unnecessary if statements and loops
This commit is contained in:
1 parent
d4c1b5e00b
commit
cd2541bb56
1 file changed
+2
-8
@@ -480,16 +480,10 @@ function(matlab_extract_all_installed_versions_from_registry win64 matlab_versio
|
||||
SUBKEYS VIEW ${_view}
|
||||
)
|
||||
|
||||
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)
|
||||
if(_match MATCHES "([0-9]+(\\.[0-9]+)+)")
|
||||
list(APPEND matlabs_from_registry ${_match})
|
||||
endif()
|
||||
endforeach()
|
||||
list(APPEND matlabs_from_registry ${_versions_regex})
|
||||
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
if(matlabs_from_registry)
|
||||
|
||||
Reference in new issue
Block a user