Commit 218858d 1 parent 3d601e3 commit 218858d Copy full SHA for 218858d
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ if (NOT DEFINED CMAKE_BUILD_TYPE)
57
57
set (CMAKE_BUILD_TYPE "Release" )
58
58
endif ()
59
59
60
- if (NOT DEFINED BUILD_SHARED_LIBS AND NOT DEFINED WIN32 )
60
+ if (NOT DEFINED BUILD_SHARED_LIBS )
61
61
set (BUILD_SHARED_LIBS ON )
62
62
endif ()
63
63
@@ -83,7 +83,8 @@ if (WIN32)
83
83
endif ()
84
84
85
85
if (BUILD_SHARED_LIBS )
86
- add_definitions (-DWCDB_DLL -DWCDB_BUILD_DLL)
86
+ set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON )
87
+ #add_definitions(-DWCDB_DLL -DWCDB_BUILD_DLL)
87
88
endif ()
88
89
89
90
add_compile_options (
@@ -94,6 +95,7 @@ if (WIN32)
94
95
add_compile_options (/wd4068) # Disable unknown pragma warnings
95
96
add_compile_options (/wd4996)
96
97
add_compile_options (/wd4715)
98
+ add_compile_options (/wd4251)
97
99
else ()
98
100
enable_language (C CXX)
99
101
set (COMM_FLAGS_ "-Wall -g" )
You can’t perform that action at this time.
0 commit comments