summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-08 14:15:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-08 14:15:46 +0100
commit1d5ca1753f540e71babc7c94563ec69852f7a8e9 (patch)
treeb952faae6b6cd3ea5ad6e7abf8edf50ab5c63d84 /CMakeLists.txt
parent452eba8b86811866a19ba9f18f27b4567353e5d7 (diff)
downloadrspamd-1d5ca1753f540e71babc7c94563ec69852f7a8e9.tar.gz
rspamd-1d5ca1753f540e71babc7c94563ec69852f7a8e9.zip
Fix openssl handling.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0fb1cc5e0..01d5563cc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -544,12 +544,6 @@ ELSE(ENABLE_LUAJIT MATCHES "ON")
ENDIF(NOT LUA_FOUND)
ENDIF(ENABLE_LUAJIT MATCHES "ON")
-#Check for openssl (required for dkim)
-IF(OPENSSL_FOUND)
- SET(HAVE_OPENSSL 1)
- INCLUDE_DIRECTORIES("${OPENSSL_INCLUDE_DIR}")
-ENDIF(OPENSSL_FOUND)
-
ProcessPackage(GLIB2 LIBRARY glib-2.0 INCLUDE glib.h INCLUDE_SUFFIXES include/glib
ROOT ${GLIB_ROOT_DIR} MODULES glib-2.0>=2.28)
ProcessPackage(PCRE LIBRARY pcre INCLUDE pcre.h INCLUDE_SUFFIXES include/pcre
@@ -565,6 +559,11 @@ ProcessPackage(ICONV LIBRARY iconv libiconv libiconv-2 c INCLUDE iconv.h INCLUDE
ProcessPackage(OPENSSL LIBRARY crypto INCLUDE opensslconf.h INCLUDE_SUFFIXES include/openssl
ROOT ${OPENSSL_ROOT_DIR} MODULES openssl)
+#Check for openssl (required for dkim)
+IF(OPENSSL_FOUND)
+ SET(HAVE_OPENSSL 1)
+ENDIF(OPENSSL_FOUND)
+
IF(GMIME2_VERSION VERSION_GREATER "2.4.0" OR NOT GMIME2_VERSION)
SET(GMIME24 1)
ENDIF()