summaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
parent9c477a80e8437e20efe6ae29eb576be1173c55e7 (diff)
downloadrspamd-e15ac669034b761234ac3b64ddc4c6362f2eb328.tar.gz
rspamd-e15ac669034b761234ac3b64ddc4c6362f2eb328.zip
Rework build system.
Diffstat (limited to 'lib')
-rw-r--r--lib/CMakeLists.txt14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 51e8b218a..fc8efff63 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -73,7 +73,6 @@ ENDIF(CMAKE_COMPILER_IS_GNUCC)
TARGET_LINK_LIBRARIES(rspamd-util ${CMAKE_REQUIRED_LIBRARIES})
TARGET_LINK_LIBRARIES(rspamd-util pcre)
TARGET_LINK_LIBRARIES(rspamd-util rspamd-ucl)
-TARGET_LINK_LIBRARIES(rspamd-util ${GLIB2_LIBRARIES})
TARGET_LINK_LIBRARIES(rspamd-util event)
IF(NOT DEBIAN_BUILD)
@@ -101,8 +100,9 @@ IF(NOT DEBIAN_BUILD)
SET_TARGET_PROPERTIES(rspamdclient_static PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing")
ENDIF(CMAKE_COMPILER_IS_GNUCC)
TARGET_LINK_LIBRARIES(rspamdclient rspamd-util)
+ TARGET_LINK_LIBRARIES(rspamdclient ${CMAKE_REQUIRED_LIBRARIES})
+ TARGET_LINK_LIBRARIES(rspamdclient_static rspamd-util)
TARGET_LINK_LIBRARIES(rspamdclient_static ${CMAKE_REQUIRED_LIBRARIES})
- TARGET_LINK_LIBRARIES(rspamdclient_static ${GLIB2_LIBRARIES})
ELSE(NOT DEBIAN_BUILD)
ADD_LIBRARY(rspamdclient STATIC ${LIBRSPAMDCLIENTSRC})
IF(CMAKE_COMPILER_IS_GNUCC)
@@ -110,7 +110,6 @@ ELSE(NOT DEBIAN_BUILD)
ENDIF(CMAKE_COMPILER_IS_GNUCC)
TARGET_LINK_LIBRARIES(rspamdclient rspamd-util)
TARGET_LINK_LIBRARIES(rspamdclient ${CMAKE_REQUIRED_LIBRARIES})
- TARGET_LINK_LIBRARIES(rspamdclient ${GLIB2_LIBRARIES})
ENDIF(NOT DEBIAN_BUILD)
IF(NOT DEBIAN_BUILD)
@@ -159,9 +158,6 @@ ENDIF(CMAKE_COMPILER_IS_GNUCC)
IF(WITH_DB)
TARGET_LINK_LIBRARIES(rspamd-server db)
ENDIF(WITH_DB)
-IF(SQLITE_LIBRARIES)
- TARGET_LINK_LIBRARIES(rspamd-server ${SQLITE_LIBRARIES})
-ENDIF(SQLITE_LIBRARIES)
IF(OPENSSL_FOUND)
TARGET_LINK_LIBRARIES(rspamd-server ${OPENSSL_LIBRARIES})
@@ -186,12 +182,6 @@ IF(CMAKE_COMPILER_IS_GNUCC)
SET_TARGET_PROPERTIES(rspamd-mime PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB -fno-strict-aliasing")
ENDIF(CMAKE_COMPILER_IS_GNUCC)
-IF(GMIME24)
- TARGET_LINK_LIBRARIES(rspamd-mime ${GMIME24_LIBRARIES})
-ELSE(GMIME24)
- TARGET_LINK_LIBRARIES(rspamd-mime ${GMIME2_LIBRARIES})
-ENDIF(GMIME24)
-
IF(NO_SHARED MATCHES "OFF")
INSTALL(TARGETS rspamd-mime
LIBRARY DESTINATION ${LIBDIR}