aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-02-04 20:10:04 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-02-04 20:25:07 +0100
commit3e83bc665f8e4f2f003fb641548c3e6399741550 (patch)
tree8b260ede421cc311bb55b7908c840f7d26302355 /ConfigureChecks.cmake
parentddcfe95bbd8daf1775847e38c4f1db3e358e2c23 (diff)
downloadlibssh-3e83bc665f8e4f2f003fb641548c3e6399741550.tar.gz
libssh-3e83bc665f8e4f2f003fb641548c3e6399741550.tar.xz
libssh-3e83bc665f8e4f2f003fb641548c3e6399741550.zip
cmake: Enable ECC support for GCrypt 1.5.0 or newer.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 80ab7599..0e4f8958 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -146,7 +146,11 @@ if (OPENSSL_FOUND)
endif (OPENSSL_FOUND)
if (GCRYPT_FOUND)
- set(HAVE_LIBGCRYPT 1)
+ set(HAVE_LIBGCRYPT 1)
+ if (GCRYPT_VERSION VERSION_GREATER "1.4.6")
+ set(HAVE_GCRYPT_ECC 1)
+ set(HAVE_ECC 1)
+ endif (GCRYPT_VERSION VERSION_GREATER "1.4.6")
endif (GCRYPT_FOUND)
if (CMAKE_HAVE_THREADS_LIBRARY)