summaryrefslogtreecommitdiff
path: root/Modules/FindMatlab.cmake
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * FindMatlab: Add R2021b => 9.11 versionMichael Hirsch2021-09-231-0/+1
| | | | | | | | R2021b released 09/22/2021.
* | FindMatlab: Sort available Matlab versions using natural comparison.Vincent Newsum2021-09-221-2/+2
| | | | | | | | | | | | | | On Windows, when FindMatlab.cmake searches the registry for installed Matlab versions, it sorts these versions alphabetically. Since Matlab 2021a (version 9.10) came out this became a problem as now version 9.10 is placed after 9.1 instead of after a higher version less than 9.10. The result is that FindMatlab doesn't return the highest version by default. This fix uses the natural sort comparison which was introduced in CMake 3.18.
* | FindMatlab: Add imported targetsSilvio Traversaro2021-09-131-0/+53
|/
* FindMatlab: Fix spelling in warning and documentationJosef Angstenberger2021-05-071-8/+8
|
* Modules: Fix typos and spelling in commentsJosef Angstenberger2021-05-071-1/+1
|
* FindMatlab: R2021a version mapMichael Hirsch2021-03-151-0/+1
|
* FindMatlab: Fix Matlab_LIBRARIES for MCRSilvio Traversaro2021-03-091-2/+9
| | | | | | | In commit bda5e2ac8f (FindMatlab: Only include engine and dataarray libraries if they are found, 2020-12-11, v3.20.0-rc1~297^2~1) we fixed the imported target to contain optional libraries only if they are found. Do the same for `Matlab_LIBRARIES`.
* FindMatlab: Fix search for MCRNikolaj Fogh2020-12-111-29/+47
| | | | Fixes: #21068, #21582
* FindMatlab: Only include engine and dataarray libraries if they are foundNikolaj Fogh2020-12-111-3/+6
|
* Help: Add `.. versionadded` directives to module docsNikita Nemkin2020-12-021-3/+35
| | | | Issue: #19715
* Merge topic 'FindMatlab-r2020b'Brad King2020-09-181-0/+1
|\ | | | | | | | | | | | | 4d292aecb6 FindMatlab: add R2020b => 9.9 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5233
| * FindMatlab: add R2020b => 9.9Michael Hirsch2020-09-171-0/+1
| |
* | FindMatlab: set MATLAB_DEFAULT_RELEASE for unknown versionAlexey Kreschuk2020-07-081-1/+4
|/ | | | | | | An "unknown" version does not always mean an old version. Setting this macro by mistake does not result in a compilation error, but not setting it does. I had this error when compiling from a user that does not have a matlab license.
* FindMatlab: Add R2020a=9.8Michael Hirsch, Ph.D2020-03-191-0/+1
| | | | This allows Matlab R2020a to be recognized as a valid Matlab version.
* Merge topic 'FindMatlab-r2019'Brad King2020-01-141-0/+2
|\ | | | | | | | | | | | | edb6fe3b6a FindMatlab: add R2019a and R2019b MATLAB_VERSIONS_MAPPING Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4207
| * FindMatlab: add R2019a and R2019b MATLAB_VERSIONS_MAPPINGSilvio Traversaro2020-01-131-0/+2
| | | | | | | | | | | | Reference for versions: https://www.mathworks.com/products/compiler/matlab-runtime.html Fixes: #20087
* | FindMatlab: in matlab_add_mex use the correct version fileSilvio Traversaro2020-01-131-4/+13
|/ | | | | | | | | | | Before this modification, the c_mexapi_version.c file was added to all mex libraries. However, if the C language was not enabled in the CMake project configuration, the c_mexapi_version.c file was ignored, creating linking errors in Windows and macOS. This commit ensures that in the case only the CXX languages is enabled, the correct version is passed. Fixes: #19382
* FindMatlab: code comment and ordering of the findersRaffi Enficiaud2019-07-151-73/+69
|
* FindMatlab: fixing extension bat file invocation errorRaffi Enficiaud2019-07-151-2/+11
| | | | | If the environment variable MATLAB_ARCH is set prior to the call, the called scripts do not return an error message.
* FindMatlab: Fixing compilation issues on WindowsRaffi Enficiaud2019-07-151-6/+1
|
* FindMatlab: EXCLUDE_FROM_ALL parameter to matlab_add_mexRaffi Enficiaud2019-06-261-1/+13
| | | | Enabling a mex target to be excluded from the `all` target.
* Merge topic 'FindMatlab/issue-19279-mex-compilation-error-on-attribute'Brad King2019-06-261-3/+5
|\ | | | | | | | | | | | | c2595a4958 FindMatlab: removing spaces in compiler define Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3473
| * FindMatlab: removing spaces in compiler defineRaffi Enficiaud2019-06-251-3/+5
| | | | | | | | | | | | | | Spaces in `DLL_EXPORT_SYM=__attribute__ ((visibility (\"default\")))` are causing a compilation error. Fixes: #19279
* | Merge topic 'matlab-if'Brad King2019-06-251-25/+25
|\ \ | | | | | | | | | | | | | | | | | | | | | 56e89e50d3 FindMatlab: simplify several if()-constructs 51bcdeb17f Tests: simplify checks for Matlab variables being set Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3472
| * | FindMatlab: simplify several if()-constructsRolf Eike Beer2019-06-241-25/+25
| |/
* | FindMatlab: Support EXACT versionsStefan Lietzau2019-06-241-8/+22
|/ | | | | | | If an exact version is requested, don't pick the latest matlab version but the one matching the requested version. Fixes: #19155