diff --git a/modules/matlab/CMakeLists.txt b/modules/matlab/CMakeLists.txt index 629b4d1292..3a5c6d12fd 100644 --- a/modules/matlab/CMakeLists.txt +++ b/modules/matlab/CMakeLists.txt @@ -104,7 +104,7 @@ set(RST_PARSER_PATH ${CMAKE_SOURCE_DIR}/modules/java/generator) # set mex compiler options prepend("-I" MEX_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include) -prepend("-L" MEX_LIB_DIR ${LIBRARY_OUTPUT_PATH}/$ ${LIBRARY_OUTPUT_PATH}/) +prepend("-L" MEX_LIB_DIR ${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR} ) set(MEX_OPTS "-largeArrayDims") if (BUILD_TESTS)