diff --git a/modules/highgui/CMakeLists.txt b/modules/highgui/CMakeLists.txt index eb5617751e..b0363c4482 100644 --- a/modules/highgui/CMakeLists.txt +++ b/modules/highgui/CMakeLists.txt @@ -138,10 +138,6 @@ if(APPLE) add_apple_compiler_options(the_module) endif() -if(BUILD_SHARED_LIBS) - add_definitions(-DHIGHGUI_EXPORTS) -endif() - if(MSVC) set_target_properties(${the_module} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG") endif() diff --git a/modules/imgcodecs/CMakeLists.txt b/modules/imgcodecs/CMakeLists.txt index 78006403d8..8da6c176cd 100644 --- a/modules/imgcodecs/CMakeLists.txt +++ b/modules/imgcodecs/CMakeLists.txt @@ -116,10 +116,6 @@ if(APPLE) add_apple_compiler_options(the_module) endif() -if(BUILD_SHARED_LIBS) - add_definitions(-DIMGCODECS_EXPORTS) -endif() - if(MSVC) set_target_properties(${the_module} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG") endif() diff --git a/modules/videoio/CMakeLists.txt b/modules/videoio/CMakeLists.txt index 8a5b9d7a36..763304adbb 100644 --- a/modules/videoio/CMakeLists.txt +++ b/modules/videoio/CMakeLists.txt @@ -244,10 +244,6 @@ if(APPLE) add_apple_compiler_options(the_module) endif() -if(BUILD_SHARED_LIBS) - add_definitions(-DVIDEOIO_EXPORTS) -endif() - if(MSVC) set_target_properties(${the_module} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG") endif()