summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-08-03 19:09:31 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-08-03 19:09:31 +0200
commit224bb7dfcfda1bfb2b9f1a84c81f6466a3aa2773 (patch)
treec17dabdb7be6eff4a9654edcb3df1355feb9fd84
parent2d1eee0c03b878002a82c8171a3e08a560679437 (diff)
downloadlibkolab-dev/windows-0.6.tar.gz
Fixed export header on windowsdev/windows-0.6
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d7b73e8..42a286b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -97,6 +97,9 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -fexceptions -UQT_NO_EXCEPTIONS -g")
+else()
+ #Required for the export header to work on windows
+ add_definitions(-DMAKE_KOLAB_LIB)
endif()
# message("${CMAKE_CXX_FLAGS}")