fixed problem with VideoInput on Windows when OpenCV compiled statically (ticket #573)

added ignore linker flags for opencv2_python
This commit is contained in:
Alexander Shishkov 2011-05-30 14:08:43 +00:00
parent 33e71127f7
commit 128d030533

View File

@ -90,6 +90,10 @@ set_target_properties(${cv2_target} PROPERTIES PREFIX "")
set_target_properties(${cv2_target} PROPERTIES OUTPUT_NAME "cv2")
set_target_properties(${cv2_target} PROPERTIES SUFFIX ${CVPY_SUFFIX})
if (MSVC AND NOT BUILD_SHARED_LIBS)
set_target_properties(${cv2_target} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /DEBUG")
endif()
set(cvpymodules ${cvpymodules} ${cv2_target})
endif()