aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/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/libserver/CMakeLists.txt
parente2bc2b887fcc7b139eaf74566dfd199bad2791e2 (diff)
downloadrspamd-e4358b2b8eee5dec84d88a917f7fde76dd03af93.tar.gz
rspamd-e4358b2b8eee5dec84d88a917f7fde76dd03af93.zip
Pre-compile config.h
Diffstat (limited to 'src/libserver/CMakeLists.txt')
-rw-r--r--src/libserver/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/CMakeLists.txt b/src/libserver/CMakeLists.txt
index 515c359a8..ee0174ee4 100644
--- a/src/libserver/CMakeLists.txt
+++ b/src/libserver/CMakeLists.txt
@@ -37,8 +37,9 @@ SET(CLASSIFIERSSRC ../classifiers/classifiers.c
#ENDIF(WITH_SQLITE)
ADD_LIBRARY(rspamd-server ${LINK_TYPE} ${LIBRSPAMDSERVERSRC} ${TOKENIZERSSRC} ${CLASSIFIERSSRC})
+ADD_PRECOMPILED_HEADER(rspamd-server "${CMAKE_BINARY_DIR}/src/config.h")
IF(NOT DEBIAN_BUILD)
-SET_TARGET_PROPERTIES(rspamd-server PROPERTIES VERSION ${RSPAMD_VERSION})
+ SET_TARGET_PROPERTIES(rspamd-server PROPERTIES VERSION ${RSPAMD_VERSION})
ENDIF(NOT DEBIAN_BUILD)
SET_TARGET_PROPERTIES(rspamd-server PROPERTIES LINKER_LANGUAGE C COMPILE_FLAGS "-DRSPAMD_LIB")
TARGET_LINK_LIBRARIES(rspamd-server rspamd-lua)