1
0
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:
Andreas Schneider
2009-05-07 15:07:54 +00:00
parent 249e11bd2e
commit 126dcd51e5
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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)

View File

@ -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