aboutsummaryrefslogtreecommitdiffstats
path: root/src/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/CMakeLists.txt
parente2bc2b887fcc7b139eaf74566dfd199bad2791e2 (diff)
downloadrspamd-e4358b2b8eee5dec84d88a917f7fde76dd03af93.tar.gz
rspamd-e4358b2b8eee5dec84d88a917f7fde76dd03af93.zip
Pre-compile config.h
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7b6ec0008..ca5bc8779 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -90,20 +90,20 @@ SET(WORKERS_LIST normal controller smtp_proxy fuzzy lua)
AddModules(MODULES_LIST WORKERS_LIST)
LIST(LENGTH PLUGINSSRC RSPAMD_MODULES_NUM)
-
######################### LINK SECTION ###############################
ADD_EXECUTABLE(rspamd ${RSPAMDSRC} ${PLUGINSSRC})
SET_TARGET_PROPERTIES(rspamd PROPERTIES LINKER_LANGUAGE C)
SET_TARGET_PROPERTIES(rspamd PROPERTIES COMPILE_FLAGS "-DRSPAMD_MAIN")
IF(NOT DEBIAN_BUILD)
-SET_TARGET_PROPERTIES(rspamd PROPERTIES VERSION ${RSPAMD_VERSION})
+ SET_TARGET_PROPERTIES(rspamd PROPERTIES VERSION ${RSPAMD_VERSION})
ENDIF(NOT DEBIAN_BUILD)
TARGET_LINK_LIBRARIES(rspamd rspamd-mime)
TARGET_LINK_LIBRARIES(rspamd rspamd-server)
TARGET_LINK_LIBRARIES(rspamd rspamd-util)
TARGET_LINK_LIBRARIES(rspamd rspamd-lua)
+ADD_PRECOMPILED_HEADER(rspamd "${CMAKE_BINARY_DIR}/src/config.h")
TARGET_LINK_LIBRARIES(rspamd event)
IF(HAVE_LIBEVENT2)