summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-08-19 16:25:27 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-08-19 16:25:27 +0100
commit48ca1ed78660a6ba4dbf8ea1890f00c57ed5fd03 (patch)
treef2cf15a20df6f765642e416ddb8b6427a3a375e6 /src
parentcade3789f8ad13db583a975f69f955928cce029f (diff)
downloadrspamd-48ca1ed78660a6ba4dbf8ea1890f00c57ed5fd03.tar.gz
rspamd-48ca1ed78660a6ba4dbf8ea1890f00c57ed5fd03.zip
Link libcurl/fetch to rcl directly.
Diffstat (limited to 'src')
-rw-r--r--src/rcl/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rcl/CMakeLists.txt b/src/rcl/CMakeLists.txt
index d5a362449..134db7269 100644
--- a/src/rcl/CMakeLists.txt
+++ b/src/rcl/CMakeLists.txt
@@ -6,6 +6,13 @@ SET(RCLSRC rcl_util.c
ADD_LIBRARY(rspamd-rcl ${LINK_TYPE} ${RCLSRC})
SET_TARGET_PROPERTIES(rspamd-rcl PROPERTIES VERSION ${RSPAMD_VERSION})
SET_TARGET_PROPERTIES(rspamd-rcl PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB")
+IF(HAVE_FETCH_H)
+ TARGET_LINK_LIBRARIES(rspamd-rcl fetch)
+ELSE(HAVE_FETCH_H)
+ IF(CURL_FOUND)
+ TARGET_LINK_LIBRARIES(rspamd-rcl ${CURL_LIBRARIES})
+ ENDIF(CURL_FOUND)
+ENDIF(HAVE_FETCH_H)
IF(NO_SHARED MATCHES "OFF")
INSTALL(TARGETS rspamd-rcl
LIBRARY DESTINATION ${LIBDIR}