aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-29 10:38:50 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-29 10:38:50 +0100
commite4358b2b8eee5dec84d88a917f7fde76dd03af93 (patch)
tree1806ed4eeb8856e3ac06f145a458c09a032cf803 /src/libmime/CMakeLists.txt
parente2bc2b887fcc7b139eaf74566dfd199bad2791e2 (diff)
downloadrspamd-e4358b2b8eee5dec84d88a917f7fde76dd03af93.tar.gz
rspamd-e4358b2b8eee5dec84d88a917f7fde76dd03af93.zip
Pre-compile config.h
Diffstat (limited to 'src/libmime/CMakeLists.txt')
-rw-r--r--src/libmime/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmime/CMakeLists.txt b/src/libmime/CMakeLists.txt
index 08efdba09..0635bb3b0 100644
--- a/src/libmime/CMakeLists.txt
+++ b/src/libmime/CMakeLists.txt
@@ -17,8 +17,9 @@ SET_TARGET_PROPERTIES(rspamd-mime PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB")
TARGET_LINK_LIBRARIES(rspamd-mime rspamd-server)
TARGET_LINK_LIBRARIES(rspamd-mime rspamd-util)
IF(CMAKE_COMPILER_IS_GNUCC)
-SET_TARGET_PROPERTIES(rspamd-mime PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB -fno-strict-aliasing")
+ SET_TARGET_PROPERTIES(rspamd-mime PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB -fno-strict-aliasing")
ENDIF(CMAKE_COMPILER_IS_GNUCC)
+ADD_PRECOMPILED_HEADER(rspamd-mime "${CMAKE_BINARY_DIR}/src/config.h")
IF(NO_SHARED MATCHES "OFF")
INSTALL(TARGETS rspamd-mime