diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-08-19 00:09:50 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-08-19 00:09:50 +0100 |
commit | cade3789f8ad13db583a975f69f955928cce029f (patch) | |
tree | 2e87bfc4c2df3ed07a721aece13b8a0553300edc /lib | |
parent | 797ed49118014e8ad121a04b585526734ad6b335 (diff) | |
download | rspamd-cade3789f8ad13db583a975f69f955928cce029f.tar.gz rspamd-cade3789f8ad13db583a975f69f955928cce029f.zip |
Add detecting of libfetch/libcurl for rcl.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index af1403523..c4b29d933 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -77,6 +77,13 @@ TARGET_LINK_LIBRARIES(rspamd-util ${CMAKE_REQUIRED_LIBRARIES}) TARGET_LINK_LIBRARIES(rspamd-util pcre) TARGET_LINK_LIBRARIES(rspamd-util ${GLIB2_LIBRARIES}) TARGET_LINK_LIBRARIES(rspamd-util event) +IF(HAVE_FETCH_H) + TARGET_LINK_LIBRARIES(rspamd-util fetch) +ELSE(HAVE_FETCH_H) + IF(CURL_FOUND) + TARGET_LINK_LIBRARIES(rspamd-util ${CURL_LIBRARIES}) + ENDIF(CURL_FOUND) +ENDIF(HAVE_FETCH_H) IF(NOT DEBIAN_BUILD) SET_TARGET_PROPERTIES(rspamd-util PROPERTIES VERSION ${RSPAMD_VERSION}) |