Fixed cmake build problem on windows

This commit is contained in:
Davis King 2013-04-28 17:55:56 -04:00
parent 2c2f955647
commit 758856dff9

View File

@ -39,7 +39,7 @@ include(${dlib_path}/cmake)
# output name is set to what the user asked for (i.e. no _).
macro(add_python_module module_name module_sources )
ADD_LIBRARY(${module_name}_ SHARED ${module_sources} ${ARGN} )
TARGET_LINK_LIBRARIES(${module_name}_ ${Boost_LIBRARIES} dlib)
TARGET_LINK_LIBRARIES(${module_name}_ ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} dlib)
if(WIN32)
SET_TARGET_PROPERTIES( ${module_name}_
PROPERTIES