diff options
Diffstat (limited to 'Modules/FindMatlab.cmake')
-rw-r--r-- | Modules/FindMatlab.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake index 8fdccdf..639cc5f 100644 --- a/Modules/FindMatlab.cmake +++ b/Modules/FindMatlab.cmake @@ -1481,6 +1481,11 @@ function(_Matlab_find_instances_macos matlab_roots) string(REPLACE "." "" _matlab_current_version_without_dot "${_matlab_current_version}") set(_matlab_base_path "/Applications/MATLAB_${_matlab_current_release}.app") + _Matlab_VersionInfoXML(${_matlab_base_path} _matlab_version_tmp) + if(NOT "${_matlab_version_tmp}" STREQUAL "unknown") + set(_matlab_current_version ${_matlab_version_tmp}) + endif() + # Check Matlab, has precedence over MCR if(IS_DIRECTORY "${_matlab_base_path}") if(MATLAB_FIND_DEBUG) |