summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindMatlab/MatlabTest2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/FindMatlab/MatlabTest2.cmake')
-rw-r--r--Tests/RunCMake/FindMatlab/MatlabTest2.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/FindMatlab/MatlabTest2.cmake b/Tests/RunCMake/FindMatlab/MatlabTest2.cmake
index d5b0e6d..4295d3c 100644
--- a/Tests/RunCMake/FindMatlab/MatlabTest2.cmake
+++ b/Tests/RunCMake/FindMatlab/MatlabTest2.cmake
@@ -6,4 +6,8 @@ if(NOT DEFINED matlab_required)
set(matlab_required REQUIRED)
endif()
+if(NOT DEFINED Matlab_ROOT_DIR AND NOT "${matlab_root}" STREQUAL "")
+ set(Matlab_ROOT_DIR ${matlab_root})
+endif()
+
find_package(Matlab ${matlab_required} COMPONENTS MX_LIBRARY)