aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-26 15:28:02 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-26 15:28:02 +0000
commite15ac669034b761234ac3b64ddc4c6362f2eb328 (patch)
tree7988559b42a6e0048deca09d16bedf9000cfeb77 /src/client
parent9c477a80e8437e20efe6ae29eb576be1173c55e7 (diff)
downloadrspamd-e15ac669034b761234ac3b64ddc4c6362f2eb328.tar.gz
rspamd-e15ac669034b761234ac3b64ddc4c6362f2eb328.zip
Rework build system.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt
index b8430db7f..ed93a8555 100644
--- a/src/client/CMakeLists.txt
+++ b/src/client/CMakeLists.txt
@@ -4,17 +4,18 @@ SET(RSPAMCSRC rspamc.c)
ADD_EXECUTABLE(rspamc ${RSPAMCSRC})
SET_TARGET_PROPERTIES(rspamc PROPERTIES COMPILE_FLAGS "-I${CMAKE_SOURCE_DIR}/lib")
TARGET_LINK_LIBRARIES(rspamc rspamd-util)
-TARGET_LINK_LIBRARIES(rspamc rspamdclient)
-TARGET_LINK_LIBRARIES(rspamc pcre)
+IF(ENABLE_STATIC MATCHES "ON")
+ TARGET_LINK_LIBRARIES(rspamc rspamdclient_static)
+ELSE(ENABLE_STATIC MATCHES "ON")
+ TARGET_LINK_LIBRARIES(rspamc rspamdclient)
+ENDIF(ENABLE_STATIC MATCHES "ON")
IF(GLIB_COMPAT)
TARGET_LINK_LIBRARIES(rspamc glibadditions)
ENDIF(GLIB_COMPAT)
IF(OPENSSL_FOUND)
TARGET_LINK_LIBRARIES(rspamc ${OPENSSL_LIBRARIES})
ENDIF(OPENSSL_FOUND)
-TARGET_LINK_LIBRARIES(rspamc ${GLIB2_LIBRARIES})
TARGET_LINK_LIBRARIES(rspamc ${CMAKE_REQUIRED_LIBRARIES})
-TARGET_LINK_LIBRARIES(rspamc m)
IF(NOT DEBIAN_BUILD)
SET_TARGET_PROPERTIES(rspamc PROPERTIES VERSION ${RSPAMD_VERSION})
ENDIF(NOT DEBIAN_BUILD)