mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
fixed problem with static compilation of highgui_tests on Windows
This commit is contained in:
parent
8b43e90e7f
commit
c8f0147a8b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user