summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-03-10 16:36:22 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-03-10 16:36:29 (GMT)
commite89a1367b6849d80670ee8915b6b3351d5d43356 (patch)
treea726d3d4b573eebf3b2977c61dfa3d28ed26249a /Modules
parentf23aa1c1202b55121a2c90aaab97aeee28a8eec6 (diff)
parent5ba1f4b6ee4a926216877efd1576f618dda8c05d (diff)
downloadCMake-e89a1367b6849d80670ee8915b6b3351d5d43356.zip
CMake-e89a1367b6849d80670ee8915b6b3351d5d43356.tar.gz
CMake-e89a1367b6849d80670ee8915b6b3351d5d43356.tar.bz2
Merge topic 'FindMatlab-MCR-vars'
5ba1f4b6ee FindMatlab: Fix Matlab_LIBRARIES for MCR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5896
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindMatlab.cmake11
1 files changed, 9 insertions, 2 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake
index ec163e8..efe871b 100644
--- a/Modules/FindMatlab.cmake
+++ b/Modules/FindMatlab.cmake
@@ -1854,8 +1854,15 @@ endif()
set(Matlab_LIBRARIES
${Matlab_MEX_LIBRARY} ${Matlab_MX_LIBRARY}
- ${Matlab_ENG_LIBRARY} ${Matlab_MAT_LIBRARY}
- ${Matlab_DATAARRAY_LIBRARY} ${Matlab_ENGINE_LIBRARY})
+ ${Matlab_ENG_LIBRARY} ${Matlab_MAT_LIBRARY})
+
+if(Matlab_ENGINE_LIBRARY)
+ list(APPEND Matlab_LIBRARIES ${Matlab_ENGINE_LIBRARY})
+endif()
+
+if(Matlab_DATAARRAY_LIBRARY)
+ list(APPEND Matlab_LIBRARIES ${Matlab_DATAARRAY_LIBRARY})
+endif()
find_package_handle_standard_args(
Matlab