summaryrefslogtreecommitdiffstats
path: root/Modules/FindMatlab.cmake
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * FindMatlab: Document that version mappings do not apply to MCRHermann von Kleist2024-01-251-1/+11
| |
* | FindMatlab: Some versions use major.minor.patch in the registryHermann von Kleist2024-01-251-4/+5
|/ | | | Fixes #25631.
* 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
|
* 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
| |
* | FindMatlab: add'l check that Matlab test version file existsMichael Hirsch2022-09-011-0/+9
|/ | | | | | this last resort check is for some HPC with "module load matlab" not enacted that fail to catch in earlier checks. That would error CMake configure even if find_package(Matlab) is not REQUIRED
* FindMatlab: Add NO_IMPLICIT_LINK_TO_MATLAB_LIBRARIES option to matlab_add_mexSilvio2022-04-051-10/+21
|
* FindMatlab: Use -batch option in matlab_add_unit_test if possibleSilvio Traversaro2022-03-211-0/+11
|
* FindMatlab: Add fallback to use -batch option in version extractionSilvio2022-03-181-7/+47
| | | | Fixes: #22646
* FindMatlab: Add R2022a => 9.12 versionMichael Hirsch2022-03-181-0/+1
|
* FindMatlab: Fix logic error when minimum version is not foundMichael Hirsch2022-03-071-0/+1
| | | | | | | | | Fix logic added by commit 7fdd5128b1 (FindMatlab: Fix version selection if a version is given, 2021-07-02, v3.22.0-rc1~66^2). Ensure that `_list_index` is always initialized to -1, akin to `list(FIND)` not finding a match. Issue: #22377
* FindMatlab: Fix version detection for MCR >= 9.10Tom M2022-02-141-1/+1
| | | | | | | | | Recent MCR versions have the following `VersionInfo.xml`: <version>9.11.0.1837725</version> Fix parsing of multiple digits in the version components so that we do not mistake this for version `9.1`.
* FindMatlab: Fix version selection if a version is givenAlexander Neumann2021-09-291-0/+23
| | | | Fixes: #22377
* Merge topic 'FindMatlab-r2021b'Brad King2021-09-241-0/+1
|\ | | | | | | | | | | | | a013404f43 FindMatlab: Add R2021b => 9.11 version Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6556