From 8633ef451e7166f8c7f380db24e616fa2d913377 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 10 Feb 2017 15:18:29 +0300 Subject: [PATCH] cmake: cleanup unused defines --- modules/highgui/CMakeLists.txt | 4 ---- modules/imgcodecs/CMakeLists.txt | 4 ---- modules/videoio/CMakeLists.txt | 4 ---- 3 files changed, 12 deletions(-) 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()