summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-01-23 19:56:32 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-01-23 19:57:08 (GMT)
commite855c7a4de78ff806c93a1a014c3c3df8875003f (patch)
tree0aa89e4be7488ae2e6f35408943865b2144cac2e /Modules
parent4571ce5f1a7181f71794fc03837482e0a388a862 (diff)
parentb8665d44ba58d52113da8333b68d0d1ab5c7a67b (diff)
downloadCMake-e855c7a4de78ff806c93a1a014c3c3df8875003f.zip
CMake-e855c7a4de78ff806c93a1a014c3c3df8875003f.tar.gz
CMake-e855c7a4de78ff806c93a1a014c3c3df8875003f.tar.bz2
Merge topic 'FindMatlab-docs'
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
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindMatlab.cmake17
1 files changed, 7 insertions, 10 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake
index 04a21bc..5259a40 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")