Revert "cmake: fixed incorrect usage of add_definitions() on Linux"

This reverts commit 286244efedd215600b6be72d4c25e48af0ed1c2d.
This commit is contained in:
Alexander Alekhin 2013-09-24 15:12:24 +04:00
parent d6d8e96003
commit ce557fb7be

View File

@ -519,7 +519,11 @@ macro(ocv_create_module)
if((NOT DEFINED OPENCV_MODULE_TYPE AND BUILD_SHARED_LIBS)
OR (DEFINED OPENCV_MODULE_TYPE AND OPENCV_MODULE_TYPE STREQUAL SHARED))
set_target_properties(${the_module} PROPERTIES DEFINE_SYMBOL CVAPI_EXPORTS)
if(MSVC)
set_target_properties(${the_module} PROPERTIES DEFINE_SYMBOL CVAPI_EXPORTS)
else()
add_definitions(-DCVAPI_EXPORTS)
endif()
endif()
if(MSVC)