Use CMAKE_CFG_INTDIR meta-variable to get the library output directory of the opencv_...
authorYantao Xie <leeward.xie@gmail.com>
Thu, 13 Feb 2014 15:53:58 +0000 (23:53 +0800)
committerYantao Xie <leeward.xie@gmail.com>
Thu, 13 Feb 2014 15:53:58 +0000 (23:53 +0800)
modules/matlab/CMakeLists.txt

index 629b4d1..3a5c6d1 100644 (file)
@@ -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}/$<CONFIGURATION> ${LIBRARY_OUTPUT_PATH}/)
+prepend("-L" MEX_LIB_DIR  ${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR} )
 set(MEX_OPTS "-largeArrayDims")
 
 if (BUILD_TESTS)