From c8f0147a8b2581622256e83a0bc7f9eefb486d75 Mon Sep 17 00:00:00 2001 From: Alexander Shishkov Date: Thu, 2 Jun 2011 10:02:08 +0000 Subject: [PATCH] fixed problem with static compilation of highgui_tests on Windows --- modules/highgui/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/highgui/CMakeLists.txt b/modules/highgui/CMakeLists.txt index 38e099f..27ed6af 100644 --- a/modules/highgui/CMakeLists.txt +++ b/modules/highgui/CMakeLists.txt @@ -412,6 +412,9 @@ if(BUILD_TESTS) add_test(${the_target} "${LOC}") if(WIN32) + if (MSVC AND NOT BUILD_SHARED_LIBS) + set_target_properties(${the_target} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /DEBUG") + endif() install(TARGETS ${the_target} RUNTIME DESTINATION bin COMPONENT main) endif() endif(BUILD_TESTS) -- 2.7.4