summaryrefslogtreecommitdiff
blob: 266bd649baa66e1a89e3474983591f508b038394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 83e9d81..8619c8b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -171,6 +171,7 @@ else(PCRE_LIBRARIES)
 	set(optlibsnotfound "${optlibsnotfound} PCRE")
 endif(PCRE_LIBRARIES)
 
+if(HAVE_GCRYPT)
 # gcrypt (using find_library and find_path)
 find_library(GCRYPT_LIBRARIES gcrypt)
 if(GCRYPT_LIBRARIES)
@@ -187,7 +188,11 @@ if(GCRYPT_LIBRARIES)
 else(GCRYPT_LIBRARIES)
 	set(optlibsnotfound "${optlibsnotfound} GCrypt")
 endif(GCRYPT_LIBRARIES)
+else(HAVE_GCRYPT)
+	set(optlibsnotfound "${optlibsnotfound} GCrypt")
+endif(HAVE_GCRYPT)
 
+if(HAVE_GNUTLS)
 # gnutls (using find_library and find_path)
 find_library(GNUTLS_LIBRARIES gnutls)
 if(GNUTLS_LIBRARIES)
@@ -205,6 +210,9 @@ if(GNUTLS_LIBRARIES)
 else(GNUTLS_LIBRARIES)
 	set(optlibsnotfound "${optlibsnotfound} GnuTLS")
 endif(GNUTLS_LIBRARIES)
+else(HAVE_GNUTLS)
+	set(optlibsnotfound "${optlibsnotfound} GnuTLS")
+endif(HAVE_GNUTLS)
 
 # mysqlclient (using find_library and find_path)
 find_library(MYSQLCLIENT_LIBRARIES mysqlclient PATH_SUFFIXES mysql)