1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

fixed pch for non-windows

This commit is contained in:
Anatoly Baksheev
2011-05-11 13:50:17 +00:00
parent c49dc37761
commit 17e1bcb006
2 changed files with 11 additions and 5 deletions
+5 -2
View File
@@ -109,8 +109,11 @@ if(SOLUTION_FOLDERS_ENABLED)
endif()
if (OPENCV_BUILD_SHARED_LIB)
#add_definitions(-DCVAPI_EXPORTS)
set_target_properties(${the_target} PROPERTIES DEFINE_SYMBOL CVAPI_EXPORTS)
if (MSVC)
set_target_properties(${the_target} PROPERTIES DEFINE_SYMBOL CVAPI_EXPORTS)
else()
add_definitions(-DCVAPI_EXPORTS)
endif()
endif()
# Additional target properties