aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-17 17:38:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-17 17:38:05 +0100
commit3747d8d66eafa0298b434cad8f1c0dfd254a9261 (patch)
tree93fd3c27ebba8fbd2f98267a9900993c35fe5da3
parent50f2bd8acd84dcf6932147e2460dbe8886305f7a (diff)
downloadrspamd-3747d8d66eafa0298b434cad8f1c0dfd254a9261.tar.gz
rspamd-3747d8d66eafa0298b434cad8f1c0dfd254a9261.zip
Fix profiler linkage.
-rw-r--r--src/client/CMakeLists.txt3
-rw-r--r--test/CMakeLists.txt3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt
index 00e48a931..d1e13f0ba 100644
--- a/src/client/CMakeLists.txt
+++ b/src/client/CMakeLists.txt
@@ -43,6 +43,9 @@ IF(OPENSSL_FOUND)
TARGET_LINK_LIBRARIES(rspamc ${OPENSSL_LIBRARIES})
ENDIF(OPENSSL_FOUND)
TARGET_LINK_LIBRARIES(rspamc ${RSPAMD_REQUIRED_LIBRARIES})
+IF(ENABLE_GPERF_TOOLS MATCHES "ON")
+ TARGET_LINK_LIBRARIES(rspamc profiler)
+ENDIF(ENABLE_GPERF_TOOLS MATCHES "ON")
IF(NOT DEBIAN_BUILD)
SET_TARGET_PROPERTIES(rspamc PROPERTIES VERSION ${RSPAMD_VERSION})
ENDIF(NOT DEBIAN_BUILD)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 0767825f0..c0c4b5d9c 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -42,3 +42,6 @@ ENDIF(ENABLE_LUAJIT MATCHES "ON")
IF(OPENSSL_FOUND)
TARGET_LINK_LIBRARIES(rspamd-test ${OPENSSL_LIBRARIES})
ENDIF(OPENSSL_FOUND)
+IF(ENABLE_GPERF_TOOLS MATCHES "ON")
+ TARGET_LINK_LIBRARIES(rspamd-test profiler)
+ENDIF(ENABLE_GPERF_TOOLS MATCHES "ON") \ No newline at end of file