diff options
author | Hermann von Kleist <hermann.von.kleist@ivi.fraunhofer.de> | 2024-01-24 12:14:08 (GMT) |
---|---|---|
committer | Hermann von Kleist <hermann.von.kleist@ivi.fraunhofer.de> | 2024-02-07 08:09:20 (GMT) |
commit | c273fc4ffbfc8888622a1f359ed295480254c354 (patch) | |
tree | 5358d1d28408c38e713cb1227b3227383e201ff7 | |
parent | 3665fe26ba304b548fb89def1f63ad7606a1dbd3 (diff) | |
download | CMake-c273fc4ffbfc8888622a1f359ed295480254c354.zip CMake-c273fc4ffbfc8888622a1f359ed295480254c354.tar.gz CMake-c273fc4ffbfc8888622a1f359ed295480254c354.tar.bz2 |
FindMatlab: Handle version range
-rw-r--r-- | Modules/FindMatlab.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake index bc0f3fc..8ef0afb 100644 --- a/Modules/FindMatlab.cmake +++ b/Modules/FindMatlab.cmake @@ -1638,7 +1638,7 @@ if(_numbers_of_matlab_roots GREATER 0) set(_list_index -1) foreach(_matlab_root_index RANGE 1 ${_numbers_of_matlab_roots} 3) list(GET _matlab_possible_roots ${_matlab_root_index} _matlab_root_version) - find_package_check_version(${_matlab_root_version} _matlab_version_ok) + find_package_check_version(${_matlab_root_version} _matlab_version_ok HANDLE_VERSION_RANGE) if(_matlab_version_ok) set(_list_index ${_matlab_root_index}) break() @@ -2008,6 +2008,7 @@ find_package_handle_standard_args( FOUND_VAR Matlab_FOUND REQUIRED_VARS ${_matlab_required_variables} VERSION_VAR Matlab_VERSION + HANDLE_VERSION_RANGE HANDLE_COMPONENTS) unset(_matlab_required_variables) |