aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/FindGCrypt.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-04-11 09:42:53 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-04-11 09:42:53 +0200
commit462c7726c37537a2c40406adb8acc2fec131b76f (patch)
tree147152df30de5b440b313399417d9dc53f20e381 /cmake/Modules/FindGCrypt.cmake
parente0fa48d2eded21ddc48502f6b4eb40ed2a4be2ce (diff)
downloadlibssh-462c7726c37537a2c40406adb8acc2fec131b76f.tar.gz
libssh-462c7726c37537a2c40406adb8acc2fec131b76f.tar.xz
libssh-462c7726c37537a2c40406adb8acc2fec131b76f.zip
cmake: Fix GCRYPT_ROOT_DIR and check correct paths
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'cmake/Modules/FindGCrypt.cmake')
-rw-r--r--cmake/Modules/FindGCrypt.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/Modules/FindGCrypt.cmake b/cmake/Modules/FindGCrypt.cmake
index 5f1fe40b..7b44408a 100644
--- a/cmake/Modules/FindGCrypt.cmake
+++ b/cmake/Modules/FindGCrypt.cmake
@@ -35,6 +35,8 @@ find_path(GCRYPT_INCLUDE_DIR
gcrypt.h
HINTS
${_GCRYPT_ROOT_HINTS_AND_PATHS}
+ PATH_SUFFIXES
+ include
)
find_library(GCRYPT_LIBRARY
@@ -44,6 +46,8 @@ find_library(GCRYPT_LIBRARY
libgcrypt-11
HINTS
${_GCRYPT_ROOT_HINTS_AND_PATHS}
+ PATH_SUFFIXES
+ lib
)
set(GCRYPT_LIBRARIES ${GCRYPT_LIBRARY})