fixed pch for non-windows
This commit is contained in:
@@ -42,8 +42,11 @@ macro(define_opencv_module name)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (OPENCV_BUILD_SHARED_LIB)
|
if (OPENCV_BUILD_SHARED_LIB)
|
||||||
#add_definitions(-DCVAPI_EXPORTS)
|
if(MSVC)
|
||||||
set_target_properties(${the_target} PROPERTIES DEFINE_SYMBOL CVAPI_EXPORTS)
|
set_target_properties(${the_target} PROPERTIES DEFINE_SYMBOL CVAPI_EXPORTS)
|
||||||
|
else()
|
||||||
|
add_definitions(-DCVAPI_EXPORTS)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Additional target properties
|
# Additional target properties
|
||||||
|
@@ -109,8 +109,11 @@ if(SOLUTION_FOLDERS_ENABLED)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (OPENCV_BUILD_SHARED_LIB)
|
if (OPENCV_BUILD_SHARED_LIB)
|
||||||
#add_definitions(-DCVAPI_EXPORTS)
|
if (MSVC)
|
||||||
set_target_properties(${the_target} PROPERTIES DEFINE_SYMBOL CVAPI_EXPORTS)
|
set_target_properties(${the_target} PROPERTIES DEFINE_SYMBOL CVAPI_EXPORTS)
|
||||||
|
else()
|
||||||
|
add_definitions(-DCVAPI_EXPORTS)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Additional target properties
|
# Additional target properties
|
||||||
|
Reference in New Issue
Block a user