diff options
author | scivision <scivision@users.noreply.github.com> | 2023-09-14 20:20:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-09-15 13:03:32 (GMT) |
commit | cf7ea12a7e3b6d47c301b435d90abef03d88e7cc (patch) | |
tree | 5d91c550fba4975ec58edd2bf9e6b597e082bcc1 /Modules | |
parent | 123cdf981661c8ae32335d4ae7e1ddcbcffd09cc (diff) | |
download | CMake-cf7ea12a7e3b6d47c301b435d90abef03d88e7cc.zip CMake-cf7ea12a7e3b6d47c301b435d90abef03d88e7cc.tar.gz CMake-cf7ea12a7e3b6d47c301b435d90abef03d88e7cc.tar.bz2 |
FindMatlab: Add R2023b=23.2
Matlab went to a new version numbering scheme with R2023b.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindMatlab.cmake | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake index fcd30ff..82350bb 100644 --- a/Modules/FindMatlab.cmake +++ b/Modules/FindMatlab.cmake @@ -140,8 +140,8 @@ Result variables ``Matlab_VERSION`` .. versionadded:: 3.27 - the numerical version (e.g. 9.13) of Matlab found. Not to be confused with - Matlab release name (e.g. R2022b) that can be obtained with + the numerical version (e.g. 23.2.0) of Matlab found. Not to be confused with + Matlab release name (e.g. R2023b) that can be obtained with :command:`matlab_get_release_name_from_version`. ``Matlab_ROOT_DIR`` the final root of the Matlab installation determined by the FindMatlab @@ -302,6 +302,7 @@ if(NOT MATLAB_ADDITIONAL_VERSIONS) endif() set(MATLAB_VERSIONS_MAPPING + "R2023b=23.2" "R2023a=9.14" "R2022b=9.13" "R2022a=9.12" @@ -345,8 +346,8 @@ file(MAKE_DIRECTORY "${_matlab_temporary_folder}") matlab_get_version_from_release_name(release version) - * Input: ``release`` is the release name (R2022b) - * Output: ``version`` is the version of Matlab (9.13) + * Input: ``release`` is the release name (e.g. R2023b) + * Output: ``version`` is the version of Matlab (e.g. 23.2.0) Returns the version of Matlab from a release name #]=======================================================================] @@ -372,8 +373,8 @@ endmacro() matlab_get_release_name_from_version(version release_name) - * Input: ``version`` is the version of Matlab (9.13) - * Output: ``release_name`` is the release name (R2022b) + * Input: ``version`` is the version of Matlab (e.g. 23.2.0) + * Output: ``release_name`` is the release name (R2023b) Returns the release name from the version of Matlab #]=======================================================================] @@ -1412,7 +1413,7 @@ function(_Matlab_VersionInfoXML) file(READ ${_XMLfile} versioninfo_string) if(versioninfo_string) - # parses "<version>9.2.0.538062</version>" + # parses "<version>23.2.0.2365128</version>" string(REGEX MATCH "<version>(.*)</version>" version_reg_match ${versioninfo_string} |