mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 20:00:51 -05:00
FindMatlab: Fix version detection for MCR >= 9.10
Recent MCR versions have the following `VersionInfo.xml`:
<version>9.11.0.1837725</version>
Fix parsing of multiple digits in the version components
so that we do not mistake this for version `9.1`.
This commit is contained in:
@@ -1353,7 +1353,7 @@ function(_Matlab_get_version_from_root matlab_root matlab_or_mcr matlab_known_ve
|
|||||||
${versioninfo_string}
|
${versioninfo_string}
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CMAKE_MATCH_1 MATCHES "(([0-9])\\.([0-9]))[\\.0-9]*")
|
if(CMAKE_MATCH_1 MATCHES "(([0-9]+)\\.([0-9]+))[\\.0-9]*")
|
||||||
set(_matlab_version_tmp "${CMAKE_MATCH_1}")
|
set(_matlab_version_tmp "${CMAKE_MATCH_1}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user