mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-04 14:50:23 +00:00
FindMatlab: Remove unnecessary if statements and loops
This commit is contained in:
@@ -480,16 +480,10 @@ function(matlab_extract_all_installed_versions_from_registry win64 matlab_versio
|
|||||||
SUBKEYS VIEW ${_view}
|
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)
|
list(APPEND matlabs_from_registry ${_versions_regex})
|
||||||
if(_match MATCHES "([0-9]+(\\.[0-9]+)+)")
|
|
||||||
list(APPEND matlabs_from_registry ${_match})
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
endif()
|
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
if(matlabs_from_registry)
|
if(matlabs_from_registry)
|
||||||
|
|||||||
Reference in New Issue
Block a user