mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 11:10:06 -05: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}
|
||||
)
|
||||
|
||||
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