From f1e9cc37de56653c41a9866cf1c26a5b67055909 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 4 Feb 2015 15:16:27 -0800 Subject: [PATCH] Install mex files in the location appropriate for shared libs --- src/asl/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/asl/CMakeLists.txt b/src/asl/CMakeLists.txt index c4dd762f1..41ca8938c 100644 --- a/src/asl/CMakeLists.txt +++ b/src/asl/CMakeLists.txt @@ -281,7 +281,12 @@ if (MATLAB_FOUND) COMPILE_FLAGS -I${CMAKE_CURRENT_BINARY_DIR} -I${solvers_dir} ${MP_MEX_OPTIONS} LIBRARIES ${matlab_asl}) - install(FILES $ DESTINATION bin) + if (WIN32) + set(mex_install_dir bin) + else () + set(mex_install_dir lib) + endif () + install(FILES $ DESTINATION ${mex_install_dir}) endforeach () endif ()