mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-29 13:01:13 +03:00
Improve GCrypt cmake checks.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@751 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@ -42,9 +42,9 @@ find_package(OpenSSL)
|
||||
|
||||
if (NOT CRYPTO_LIBRARY)
|
||||
find_package(GCrypt)
|
||||
if (NOT GCRYPT_LIBRARY)
|
||||
if (NOT GCRYPT_FOUND)
|
||||
message(FATAL_ERROR "Could not find OpenSSL or GCrypt")
|
||||
endif (NOT GCRYPT_LIBRARY)
|
||||
endif (NOT GCRYPT_FOUND)
|
||||
endif (NOT CRYPTO_LIBRARY)
|
||||
|
||||
# config.h checks
|
||||
|
@ -41,9 +41,9 @@ if (CRYPTO_LIBRARY)
|
||||
set(HAVE_LIBCRYPTO 1)
|
||||
endif (CRYPTO_LIBRARY)
|
||||
|
||||
if (GCRYPT_LIBRARY)
|
||||
if (GCRYPT_FOUND)
|
||||
set(HAVE_LIBGCRYPT 1)
|
||||
endif (GCRYPT_LIBRARY)
|
||||
endif (GCRYPT_FOUND)
|
||||
|
||||
if (Z_LIBRARY)
|
||||
set(HAVE_LIBZ 1)
|
||||
|
@ -42,7 +42,7 @@ else (GCRYPT_LIBRARIES AND GCRYPT_INCLUDE_DIRS)
|
||||
mark_as_advanced(GCRYPT_LIBRARY)
|
||||
|
||||
if (GCRYPT_LIBRARY)
|
||||
set(GCRYPT_FOUND TRUE)
|
||||
set(GCRYPT_FOUND TRUE CACHE INTERNAL "Wether the gcrypt library has been found" FORCE)
|
||||
endif (GCRYPT_LIBRARY)
|
||||
|
||||
set(GCRYPT_INCLUDE_DIRS
|
||||
|
Reference in New Issue
Block a user