summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorscivision <scivision@users.noreply.github.com>2023-09-18 19:50:10 (GMT)
committerscivision <scivision@users.noreply.github.com>2023-09-18 19:50:48 (GMT)
commit39881de3f6183f6df7f6406724546a35fd8d8f7e (patch)
tree648056afd3a04d9192bdda0fed9c404ffdbe9e36 /Modules
parent35bcb9116c7ec89320e2f7d092a6581272afa145 (diff)
downloadCMake-39881de3f6183f6df7f6406724546a35fd8d8f7e.zip
CMake-39881de3f6183f6df7f6406724546a35fd8d8f7e.tar.gz
CMake-39881de3f6183f6df7f6406724546a35fd8d8f7e.tar.bz2
FindMatlab:macOS: return full version when found by path guess
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindMatlab.cmake5
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)