summaryrefslogtreecommitdiffstats
path: root/Modules/FindMatlab.cmake
diff options
context:
space:
mode:
authorSebastian Niemann <niemann@sra.uni-hannover.de>2016-08-12 21:39:27 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-15 13:28:54 (GMT)
commit8ba204a69602ca8744aeec4ca3d808c964715ed5 (patch)
treea0012737e79121a7b2f8ab60a02ba7bab02bd6cb /Modules/FindMatlab.cmake
parentf99df80794df7acc383d93d47b5da3ac8450e117 (diff)
downloadCMake-8ba204a69602ca8744aeec4ca3d808c964715ed5.zip
CMake-8ba204a69602ca8744aeec4ca3d808c964715ed5.tar.gz
CMake-8ba204a69602ca8744aeec4ca3d808c964715ed5.tar.bz2
FindMatlab: Use pre-built libraries for MinGW if needed
Diffstat (limited to 'Modules/FindMatlab.cmake')
-rw-r--r--Modules/FindMatlab.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake
index 956dad2..46285aa 100644
--- a/Modules/FindMatlab.cmake
+++ b/Modules/FindMatlab.cmake
@@ -1287,7 +1287,11 @@ set(Matlab_EXTERN_LIBRARY_DIR
${Matlab_ROOT_DIR}/extern/lib/${_matlab_bin_prefix}${_matlab_current_suffix})
if(WIN32)
- set(_matlab_lib_dir_for_search ${Matlab_EXTERN_LIBRARY_DIR}/microsoft)
+ if(MINGW)
+ set(_matlab_lib_dir_for_search ${Matlab_EXTERN_LIBRARY_DIR}/mingw64)
+ else()
+ set(_matlab_lib_dir_for_search ${Matlab_EXTERN_LIBRARY_DIR}/microsoft)
+ endif()
set(_matlab_lib_prefix_for_search "lib")
else()
set(_matlab_lib_dir_for_search ${Matlab_BINARIES_DIR})