diff options
author | Raffi Enficiaud <raffi.enficiaud@mines-paris.org> | 2017-04-29 18:31:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-04-23 14:30:49 (GMT) |
commit | 59fb9e89b2bd09a2edd5bbaecb01f43d6f3a2a7e (patch) | |
tree | 05897534fca0be23f67df31938a4c237a51f4c98 /Tests/FindMatlab/versions_checks | |
parent | ccd17a557cbf8ada18207a72eea78d2adcc9d752 (diff) | |
download | CMake-59fb9e89b2bd09a2edd5bbaecb01f43d6f3a2a7e.zip CMake-59fb9e89b2bd09a2edd5bbaecb01f43d6f3a2a7e.tar.gz CMake-59fb9e89b2bd09a2edd5bbaecb01f43d6f3a2a7e.tar.bz2 |
FindMatlab: Matlab Runtime Compiler support
* Determining automatically the MCR version on OSX and Windows
* Distinguishing between MCR and Matlab
* Specific tests for the MCR
* mexext on windows does not work properly: the mexext is hardcoded
* Doc updates for the MCR
Fixes: #16487
Diffstat (limited to 'Tests/FindMatlab/versions_checks')
-rw-r--r-- | Tests/FindMatlab/versions_checks/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/FindMatlab/versions_checks/CMakeLists.txt b/Tests/FindMatlab/versions_checks/CMakeLists.txt index 5d20685..d015730 100644 --- a/Tests/FindMatlab/versions_checks/CMakeLists.txt +++ b/Tests/FindMatlab/versions_checks/CMakeLists.txt @@ -7,6 +7,13 @@ set(MATLAB_FIND_DEBUG TRUE) set(MATLAB_ADDITIONAL_VERSIONS "dummy=14.9") +if(NOT "${MCR_ROOT}" STREQUAL "") + set(Matlab_ROOT_DIR "${MCR_ROOT}") + if(NOT EXISTS "${MCR_ROOT}") + message(FATAL_ERROR "MCR does not exist ${MCR_ROOT}") + endif() +endif() + # the success of the following command is dependent on the current configuration # in this case, we are only interested in the version macros find_package(Matlab) |