From 128d0305334f6422ad1b235daedae0079d2d8a00 Mon Sep 17 00:00:00 2001 From: Alexander Shishkov Date: Mon, 30 May 2011 14:08:43 +0000 Subject: [PATCH] fixed problem with VideoInput on Windows when OpenCV compiled statically (ticket #573) added ignore linker flags for opencv2_python --- modules/python/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/python/CMakeLists.txt b/modules/python/CMakeLists.txt index bd4cdac320..742eeb5aba 100644 --- a/modules/python/CMakeLists.txt +++ b/modules/python/CMakeLists.txt @@ -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()