aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-10-12 17:07:00 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-10-12 17:07:20 +0200
commit82711acd39e38b5f9fb128445dc95e280de9c7b6 (patch)
treea20b1d6d28952982cad9ca9a5f9c5cff5311643e /ConfigureChecks.cmake
parente8118c5be47a836518fb1f1205232db428203b9e (diff)
downloadlibssh-82711acd39e38b5f9fb128445dc95e280de9c7b6.tar.gz
libssh-82711acd39e38b5f9fb128445dc95e280de9c7b6.tar.xz
libssh-82711acd39e38b5f9fb128445dc95e280de9c7b6.zip
cmake: Fix building with gcrypt support.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake15
1 files changed, 9 insertions, 6 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index f20fac99..988a3f62 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -81,13 +81,16 @@ if (CMAKE_HAVE_PTHREAD_H)
set(HAVE_PTHREAD_H 1)
endif (CMAKE_HAVE_PTHREAD_H)
-if (HAVE_OPENSSL_EC_H AND HAVE_OPENSSL_ECDSA_H)
- set(HAVE_OPENSSL_ECC 1)
-endif (HAVE_OPENSSL_EC_H AND HAVE_OPENSSL_ECDSA_H)
+if (NOT WITH_GCRYPT)
+ if (HAVE_OPENSSL_EC_H AND HAVE_OPENSSL_ECDSA_H)
+ set(HAVE_OPENSSL_ECC 1)
+ endif (HAVE_OPENSSL_EC_H AND HAVE_OPENSSL_ECDSA_H)
+
+ if (HAVE_OPENSSL_ECC)
+ set(HAVE_ECC 1)
+ endif (HAVE_OPENSSL_ECC)
+endif (NOT WITH_GCRYPT)
-if (HAVE_OPENSSL_ECC)
- set(HAVE_ECC 1)
-endif (HAVE_OPENSSL_ECC)
# FUNCTIONS
check_function_exists(strncpy HAVE_STRNCPY)