summaryrefslogtreecommitdiffstats
path: root/Modules/FindMatlab.cmake
Commit message (Collapse)AuthorAgeFilesLines
* FindMatlab: R2024a version mapscivision2024-03-211-0/+1
|
* Merge topic 'findmatlab-registry-lookup-without-versionxml' into release-3.29Brad King2024-02-081-12/+1
|\ | | | | | | | | | | | | e22c4dfea0 FindMatlab: Revert undocumented and now-unnecessary full version lookup Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9226
| * FindMatlab: Revert undocumented and now-unnecessary full version lookupHermann von Kleist2024-02-071-12/+1
| | | | | | | | | | | | | | | | | | | | | | Partially revert commit dc9d9589e4 (FindMatlab:WIN32: return full Matlab version when found via registry, 2023-09-14, v3.28.0-rc1~82^2~2). It changed `matlab_extract_all_installed_versions_from_registry` behavior to query `VersionInfo.xml` for version information. However, the function documentation states that it only uses the registry. It's also not needed since commit c608adc236 (FindMatlab: Fix major.minor version lookups in Windows Registry, 2024-01-11, v3.28.2~13^2~1), which added the same lookup to `matlab_get_all_valid_matlab_roots_from_registry`.
| * Merge topic 'find-matlab-docs-mcr-version-mapping' into release-3.28Brad King2024-01-261-1/+11
| |\ | | | | | | | | | | | | | | | | | | 29fece7ef3 FindMatlab: Document that version mappings do not apply to MCR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9184
* | \ Merge topic 'find-matlab-docs-mcr-version-mapping'Brad King2024-01-261-1/+11
|\ \ \ | | |/ | |/| | | | | | | | | | | | | 29fece7ef3 FindMatlab: Document that version mappings do not apply to MCR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9184
| * | FindMatlab: Document that version mappings do not apply to MCRHermann von Kleist2024-01-251-1/+11
| | |
* | | Merge topic 'find-matlab-fix-nonzero-patch-version'Brad King2024-01-261-4/+5
|\ \ \ | | |/ | |/| | | | | | | | | | | | | b1e27b1b9d FindMatlab: Some versions use major.minor.patch in the registry Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9183
| * | FindMatlab: Some versions use major.minor.patch in the registryHermann von Kleist2024-01-251-4/+5
| |/ | | | | | | Fixes #25631.
* | Merge topic 'FindMatlab-docs'Brad King2024-01-231-10/+7
|\ \ | |/ | | | | | | | | | | | | | | | | 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
| * FindMatlab: Fix error message from functionHermann von Kleist2024-01-221-1/+1
| |
| * FindMatlab: Document all registry paths for version lookupHermann von Kleist2024-01-221-3/+4
| |
| * FindMatlab: matlab_get_release_name_from_version is a function nowHermann von Kleist2024-01-221-6/+2
| |
* | Merge topic 'matlab-env'Brad King2024-01-191-16/+16
|\ \ | |/ |/| | | | | | | | | | | 6f7d87b40d FindMatlab: use NAMES for find_* 9e97893147 FindMatlab: set MATLAB_ARCH per process call Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9161
| * FindMatlab: use NAMES for find_*scivision2024-01-171-12/+12
| | | | | | | | | | this improves readability especially for custom function _Matlab_find_library
| * FindMatlab: set MATLAB_ARCH per process callscivision2024-01-171-4/+4
| | | | | | | | this is just a best practice refactor.
* | FindMatlab: Restore support for finding EXACT major.minor versionHermann von Kleist2024-01-171-1/+11
| | | | | | | | | | | | | | By comparing major.minor, the behavior approximately matches pre-3.28 behavior. Fixes: #25605
* | FindMatlab: use correct registry view when extracting versionsHermann von Kleist2024-01-171-0/+1
| |
* | FindMatlab: Accept long version in matlab_get_release_name_from_versionscivision2024-01-161-17/+7
| | | | | | | | | | | | | | | | | | | | Make this work: matlab_get_release_name_from_version(${Matlab_VERSION}) which the user would expect. While at it, simplify this function code.
* | FindMatlab: Fix major.minor version lookups in Windows Registryscivision2024-01-161-45/+47
|/ | | | | | | The registry key names use only the first two version components. Previously we were using the full versions. Fixes: #25582
* FindMatlab: Restore support for versions without VersionInfo.xmlHermann von Kleist2024-01-121-12/+13
| | | | | | | | Report "unknown" in `_Matlab_VersionInfoXML` if file is missing. Fix omitted MATLAB root with unknown version from XML. Fixes: #25585 Fixes: #25586
* FindMatlab: Fix processing of multiple versions from Windows RegistryBrad King2023-12-141-2/+2
| | | | | | | | Fix logic from commit fff5c1507e (FindMatlab: refactor: use registry query instead of execute_process, 2023-09-14, v3.28.0-rc1~82^2~7) to work when multiple versions are found in the registry. Issue: #25497
* FindMatlab: Fix regression on Windows Registry lookup failureBrad King2023-12-141-4/+4
| | | | | | | | Fix logic from commit dc9d9589e4 (FindMatlab:WIN32: return full Matlab version when found via registry, 2023-09-14, v3.28.0-rc1~82^2~2) to avoid assuming that a registry entry always exists and is non-empty. Fixes: #25497
* FindMatlab:macOS: return full version when found by path guessscivision2023-09-181-0/+5
|
* FindMatlab:lint: set(... CACHE INTERNAL) implies FORCEscivision2023-09-181-6/+6
|
* FindMatlab:WIN32: return full Matlab version when found via registryscivision2023-09-181-13/+24
| | | | | rework internal XML reading function for better code reuse and namespace isolation
* FindMatlab: improve version regexscivision2023-09-181-5/+5
| | | | the matlab_versions_mapping always has at least major.minor
* FindMatlab: doc: rename osx=>macOSscivision2023-09-181-6/+6
|
* FindMatlab: retrieve full major.minor.patch.tweakscivision2023-09-181-4/+12
|
* FindMatlab: refactor: remove unneeded syntaxscivision2023-09-181-7/+2
|
* FindMatlab: refactor: use registry query instead of execute_processscivision2023-09-181-32/+15
| | | | | | | | | On Windows, instead of executing "reg query" it's much simpler and more robust to use cmake's built in registry query. Remove unused variables. Significantly reduces amount of code in function.
* FindMatlab: Add R2023b=23.2scivision2023-09-151-7/+8
| | | | Matlab went to a new version numbering scheme with R2023b.
* FindMatlab: Prefer to use VersionInfo.xml to get version, fallback to runscivision2023-09-101-24/+43
| | | | | | | | | | | | Parsing the version file is much faster than running Matlab. It also improves reliability as Matlab silently quits or hangs in some misconfigured environments. For old Matlab, falls back to running Matlab. also refactor file(STRINGS => file(READ as whole file was read anyway Fixes: #25209
* FindMatlab: use if(IS_DIRECTORY) for directories instead of EXISTSscivision2023-08-271-8/+8
|
* FindMatlab: no if(NOT EXIST) guard needed for file(MAKE_DIRECTORY)scivision2023-08-271-3/+1
|
* codespell: Fix typosBrad King2023-05-221-1/+1
|
* Merge topic 'FindMatlab-R2023a'Brad King2023-03-171-0/+1
|\ | | | | | | | | | | | | 58ab34d88a FindMatlab: add version/release map for R2023a Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8334
| * FindMatlab: add version/release map for R2023ascivision2023-03-161-0/+1
| |
* | FindMatlab: refactor: use string(APPENDscivision2023-03-071-8/+7
| |
* | FindMatlab: use modern foreach()scivision2023-03-071-32/+7
| | | | | | | | remove unused superseded commented code
* | FindMatlab: document function input/outputscivision2023-03-071-41/+42
| |
* | FindMatlab: add Matlab_VERSION and document.scivision2023-03-071-1/+9
|/ | | | fixes #24569
* Merge topic 'FindMatlab-macos-rosetta'Brad King2023-01-131-32/+17
|\ | | | | | | | | | | | | | | 1bc9b0f256 FindMatlab: accommodate Matlab running under Rosetta 8dcd14bb87 FindMatlab: simplify mexext find logic Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8063
| * FindMatlab: accommodate Matlab running under Rosettascivision2023-01-121-13/+14
| | | | | | | | fixes #24312
| * FindMatlab: simplify mexext find logicscivision2023-01-121-19/+3
| | | | | | | | This eliminates an explicit for() loop
* | FindMatlab: Add SYSTEM include flag for matlab_add_mexJorrit Olthuis2023-01-111-1/+1
|/ | | | | | | Add the `SYSTEM` flag for include directories provided by MATLAB, as the the pragmas used are not compatible with GCC and generate a warning. Fixes: #24166
* Merge topic 'matlab-r2022b'Brad King2022-09-191-0/+1
|\ | | | | | | | | | | | | edbdfba3f5 FindMatlab: add R2022b 9.13 version map Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7683
| * FindMatlab: add R2022b 9.13 version mapMichael Hirsch2022-09-161-0/+1
| |
* | Merge topic 'FindMatlab-macos-arm64'Brad King2022-09-151-1/+5
|\ \ | |/ | | | | | | | | | | f0edac914a FindMatlab: Add MEX binary file suffix for Apple Silicon native Matlab Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7673
| * FindMatlab: Add MEX binary file suffix for Apple Silicon native MatlabMichael Hirsch2022-09-141-1/+5
| | | | | | | | The Matlab MEX binary file suffix is distinct for Apple Silicon.
* | FindMatlab: follow CMP0074 <PackageName>_ROOT search behaviorMichael Hirsch2022-09-011-1/+16
| |