aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
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 /CMakeLists.txt
parentcade3789f8ad13db583a975f69f955928cce029f (diff)
downloadrspamd-48ca1ed78660a6ba4dbf8ea1890f00c57ed5fd03.tar.gz
rspamd-48ca1ed78660a6ba4dbf8ea1890f00c57ed5fd03.zip
Link libcurl/fetch to rcl directly.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f2be7bad4..a14e44383 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1120,6 +1120,13 @@ ELSE(GMIME24)
TARGET_LINK_LIBRARIES(rspamd ${GMIME2_LIBRARIES})
ENDIF(GMIME24)
TARGET_LINK_LIBRARIES(rspamd ${GLIB2_LIBRARIES})
+IF(HAVE_FETCH_H)
+ TARGET_LINK_LIBRARIES(rspamd fetch)
+ELSE(HAVE_FETCH_H)
+ IF(CURL_FOUND)
+ TARGET_LINK_LIBRARIES(rspamd ${CURL_LIBRARIES})
+ ENDIF(CURL_FOUND)
+ENDIF(HAVE_FETCH_H)
TARGET_LINK_LIBRARIES(rspamd ${CMAKE_REQUIRED_LIBRARIES})
IF(ENABLE_STATIC MATCHES "ON")