projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8afb7a4
)
added add_definitions(-DCVAPI_EXPORTS) to cmakelists.txt
author
berak
<p4p4p4@web.de>
Mon, 29 Jul 2013 10:16:37 +0000
(12:16 +0200)
committer
berak
<p4p4p4@web.de>
Mon, 29 Jul 2013 10:16:37 +0000
(12:16 +0200)
modules/python/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/modules/python/CMakeLists.txt
b/modules/python/CMakeLists.txt
index
0b4c59d
..
877b454
100644
(file)
--- a/
modules/python/CMakeLists.txt
+++ b/
modules/python/CMakeLists.txt
@@
-81,6
+81,10
@@
if(ENABLE_SOLUTION_FOLDERS)
set_target_properties(${the_module} PROPERTIES FOLDER "bindings")
endif()
+if(MSVC)
+ add_definitions(-DCVAPI_EXPORTS)
+endif()
+
if(CMAKE_COMPILER_IS_GNUCXX AND NOT ENABLE_NOISY_WARNINGS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-function")
endif()