package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
843 B
22 lines
843 B
diff --git a/modules/highgui/CMakeLists.txt b/modules/highgui/CMakeLists.txt |
|
index a9b6701..cf36137 100644 |
|
--- a/modules/highgui/CMakeLists.txt |
|
+++ b/modules/highgui/CMakeLists.txt |
|
@@ -75,7 +75,7 @@ if(OPENCV_VERSION_MAJOR EQUAL 2) |
|
add_definitions(-DHIGHGUI_EXPORTS) |
|
endif() |
|
|
|
- if(MSVC) |
|
+ if(MSVC AND NOT BUILD_SHARED_LIBS AND BUILD_WITH_STATIC_CRT) |
|
set_target_properties(${the_module} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG") |
|
endif() |
|
|
|
@@ -86,7 +86,7 @@ else() |
|
add_apple_compiler_options(the_module) |
|
endif() |
|
|
|
- if(MSVC) |
|
+ if(MSVC AND NOT BUILD_SHARED_LIBS AND BUILD_WITH_STATIC_CRT) |
|
set_target_properties(${the_module} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG") |
|
endif() |
|
|
|
|