From b12ed1722e350bd55a13e34f2eb6f8d41134581d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 9 Nov 2013 20:55:31 +0000 Subject: [PATCH] Link openssl to rspamc if enabled. --- src/client/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index d87d622c9..b8430db7f 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -9,6 +9,9 @@ TARGET_LINK_LIBRARIES(rspamc pcre) IF(GLIB_COMPAT) TARGET_LINK_LIBRARIES(rspamc glibadditions) ENDIF(GLIB_COMPAT) +IF(OPENSSL_FOUND) + TARGET_LINK_LIBRARIES(rspamc ${OPENSSL_LIBRARIES}) +ENDIF(OPENSSL_FOUND) TARGET_LINK_LIBRARIES(rspamc ${GLIB2_LIBRARIES}) TARGET_LINK_LIBRARIES(rspamc ${CMAKE_REQUIRED_LIBRARIES}) TARGET_LINK_LIBRARIES(rspamc m) -- 2.39.5