diff options
author | Jakub Jelen <jjelen@redhat.com> | 2018-10-03 19:08:49 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-10-09 13:05:38 +0200 |
commit | 032f486f27c51f78318a2f26486ccdcabe139d5e (patch) | |
tree | fc80775ea376d70d26644589e5d1cd3aca38b3cc /cmake/Modules/FindGCrypt.cmake | |
parent | 46090facbae8c8292d2775546082ccbd5e56fbd1 (diff) | |
download | libssh-032f486f27c51f78318a2f26486ccdcabe139d5e.tar.gz libssh-032f486f27c51f78318a2f26486ccdcabe139d5e.tar.xz libssh-032f486f27c51f78318a2f26486ccdcabe139d5e.zip |
cmake: Link against gpg-error
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'cmake/Modules/FindGCrypt.cmake')
-rw-r--r-- | cmake/Modules/FindGCrypt.cmake | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cmake/Modules/FindGCrypt.cmake b/cmake/Modules/FindGCrypt.cmake index 389a0314..b1f73d81 100644 --- a/cmake/Modules/FindGCrypt.cmake +++ b/cmake/Modules/FindGCrypt.cmake @@ -49,7 +49,15 @@ find_library(GCRYPT_LIBRARY PATH_SUFFIXES lib ) -set(GCRYPT_LIBRARIES ${GCRYPT_LIBRARY}) +find_library(GCRYPT_ERROR_LIBRARY + NAMES + gpg-error + libgpg-error-0 + libgpg-error6-0 + HINTS + ${_GCRYPT_ROOT_HINTS_AND_PATHS} +) +set(GCRYPT_LIBRARIES ${GCRYPT_LIBRARY} ${GCRYPT_ERROR_LIBRARY}) if (GCRYPT_INCLUDE_DIR) file(STRINGS "${GCRYPT_INCLUDE_DIR}/gcrypt.h" _gcrypt_version_str REGEX "^#define GCRYPT_VERSION \"[0-9]+\\.[0-9]+\\.[0-9]") |