diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-29 10:38:50 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-29 10:38:50 +0100 |
commit | e4358b2b8eee5dec84d88a917f7fde76dd03af93 (patch) | |
tree | 1806ed4eeb8856e3ac06f145a458c09a032cf803 /src/client | |
parent | e2bc2b887fcc7b139eaf74566dfd199bad2791e2 (diff) | |
download | rspamd-e4358b2b8eee5dec84d88a917f7fde76dd03af93.tar.gz rspamd-e4358b2b8eee5dec84d88a917f7fde76dd03af93.zip |
Pre-compile config.h
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index aa4b8023d..979aa8607 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -7,7 +7,8 @@ ELSE(NO_SHARED MATCHES "OFF") ADD_LIBRARY(rspamdclient STATIC ${LIBRSPAMDCLIENTSRC}) ENDIF(NO_SHARED MATCHES "OFF") ADD_LIBRARY(rspamdclient_static STATIC ${LIBRSPAMDCLIENTSRC}) - +ADD_PRECOMPILED_HEADER(rspamdclient_static "${CMAKE_BINARY_DIR}/src/config.h") +ADD_PRECOMPILED_HEADER(rspamdclient "${CMAKE_BINARY_DIR}/src/config.h") SET_TARGET_PROPERTIES(rspamdclient PROPERTIES COMPILE_FLAGS "-fPIC") SET_TARGET_PROPERTIES(rspamdclient_static PROPERTIES COMPILE_FLAGS "-fPIC") @@ -30,6 +31,7 @@ ENDIF(NO_SHARED MATCHES "OFF") SET(RSPAMCSRC rspamc.c) ADD_EXECUTABLE(rspamc ${RSPAMCSRC}) +ADD_PRECOMPILED_HEADER(rspamc "${CMAKE_BINARY_DIR}/src/config.h") SET_TARGET_PROPERTIES(rspamc PROPERTIES COMPILE_FLAGS "-I${CMAKE_SOURCE_DIR}/lib") TARGET_LINK_LIBRARIES(rspamc rspamd-util) IF(ENABLE_STATIC MATCHES "ON") |