diff options
author | Brad King <brad.king@kitware.com> | 2024-01-23 19:56:32 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-01-23 19:57:07 (GMT) |
commit | 30c067e24ad437e8b71ad5373032265c6dbbe299 (patch) | |
tree | a7b9f21b721be77f0d427dea3fbfd47922464329 | |
parent | 663bc936e843fe433d3a5dfddf02a11e5fff8a16 (diff) | |
parent | b8665d44ba58d52113da8333b68d0d1ab5c7a67b (diff) | |
download | CMake-30c067e24ad437e8b71ad5373032265c6dbbe299.zip CMake-30c067e24ad437e8b71ad5373032265c6dbbe299.tar.gz CMake-30c067e24ad437e8b71ad5373032265c6dbbe299.tar.bz2 |
Merge topic 'FindMatlab-docs' into release-3.28
b8665d44ba FindMatlab: Fix error message from function
44d2cf3ed4 FindMatlab: Document all registry paths for version lookup
363a7d4693 FindMatlab: matlab_get_release_name_from_version is a function now
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !9175
-rw-r--r-- | Modules/FindMatlab.cmake | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake index 609cd4e..987427f 100644 --- a/Modules/FindMatlab.cmake +++ b/Modules/FindMatlab.cmake @@ -189,17 +189,13 @@ Cached variables the location of the root of the Matlab installation found. If this value is changed by the user, the result variables are recomputed. -Provided macros -^^^^^^^^^^^^^^^ +Provided commands +^^^^^^^^^^^^^^^^^ :command:`matlab_get_version_from_release_name` returns the version from the release name :command:`matlab_get_release_name_from_version` returns the release name from the Matlab version - -Provided functions -^^^^^^^^^^^^^^^^^^ - :command:`matlab_add_mex` adds a target compiling a MEX file. :command:`matlab_add_unit_test` @@ -442,9 +438,10 @@ endmacro() are installed. The found versions are returned in `matlab_versions`. Set `win64` to `TRUE` if the 64 bit version of Matlab should be looked for The returned list contains all versions under - ``HKLM\\SOFTWARE\\Mathworks\\MATLAB`` and - ``HKLM\\SOFTWARE\\Mathworks\\MATLAB Runtime`` or an empty list in case an - error occurred (or nothing found). + ``HKLM\\SOFTWARE\\Mathworks\\MATLAB``, + ``HKLM\\SOFTWARE\\Mathworks\\MATLAB Runtime`` and + ``HKLM\\SOFTWARE\\Mathworks\\MATLAB Compiler Runtime`` or an empty list in + case an error occurred (or nothing found). .. note:: @@ -455,7 +452,7 @@ endmacro() function(matlab_extract_all_installed_versions_from_registry win64 matlab_versions) if(NOT CMAKE_HOST_WIN32) - message(FATAL_ERROR "[MATLAB] This macro can only be called by a Windows host") + message(FATAL_ERROR "[MATLAB] This function can only be called by a Windows host") endif() if(${win64} AND CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "64") |