diff options
author | Brad King <brad.king@kitware.com> | 2021-03-10 16:36:22 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-03-10 16:36:29 (GMT) |
commit | e89a1367b6849d80670ee8915b6b3351d5d43356 (patch) | |
tree | a726d3d4b573eebf3b2977c61dfa3d28ed26249a /Modules | |
parent | f23aa1c1202b55121a2c90aaab97aeee28a8eec6 (diff) | |
parent | 5ba1f4b6ee4a926216877efd1576f618dda8c05d (diff) | |
download | CMake-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.cmake | 11 |
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 |