1
1
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@752 7dcaeef0-15fb-0310-b436-a5af3365683c
Этот коммит содержится в:
Andreas Schneider 2009-05-07 15:11:04 +00:00
родитель 126dcd51e5
Коммит f29e119c25
3 изменённых файлов: 14 добавлений и 8 удалений

Просмотреть файл

@ -40,12 +40,12 @@ find_package(ZLIB REQUIRED)
find_package(OpenSSL) find_package(OpenSSL)
if (NOT CRYPTO_LIBRARY) if (NOT CRYPTO_FOUND)
find_package(GCrypt) find_package(GCrypt)
if (NOT GCRYPT_FOUND) if (NOT GCRYPT_FOUND)
message(FATAL_ERROR "Could not find OpenSSL or GCrypt") message(FATAL_ERROR "Could not find OpenSSL or GCrypt")
endif (NOT GCRYPT_FOUND) endif (NOT GCRYPT_FOUND)
endif (NOT CRYPTO_LIBRARY) endif (NOT CRYPTO_FOUND)
# config.h checks # config.h checks
include(ConfigureChecks.cmake) include(ConfigureChecks.cmake)

Просмотреть файл

@ -37,9 +37,9 @@ else (WIN32)
endif (WIN32) endif (WIN32)
# LIBRARIES # LIBRARIES
if (CRYPTO_LIBRARY) if (CRYPTO_FOUND)
set(HAVE_LIBCRYPTO 1) set(HAVE_LIBCRYPTO 1)
endif (CRYPTO_LIBRARY) endif (CRYPTO_FOUND)
if (GCRYPT_FOUND) if (GCRYPT_FOUND)
set(HAVE_LIBGCRYPT 1) set(HAVE_LIBGCRYPT 1)

Просмотреть файл

@ -91,16 +91,19 @@ else (OPENSSL_LIBRARIES AND OPENSSL_INCLUDE_DIRS)
mark_as_advanced(CRYPTO_LIBRARY) mark_as_advanced(CRYPTO_LIBRARY)
if (SSL_LIBRARY) if (SSL_LIBRARY)
set(SSL_FOUND TRUE) set(SSL_FOUND TRUE CACHE INTERNAL "Wether the ssl library has been found" FORCE)
endif (SSL_LIBRARY) endif (SSL_LIBRARY)
if (SSLEAY32_LIBRARY) if (SSLEAY32_LIBRARY)
set(SSLEAY32_FOUND TRUE) set(SSLEAY32_FOUND TRUE CACHE INTERNAL "Wether the ssleay32 library has been found" FORCE)
endif (SSLEAY32_LIBRARY) endif (SSLEAY32_LIBRARY)
if (SSLEAY32MD_LIBRARY) if (SSLEAY32MD_LIBRARY)
set(SSLEAY32MD_FOUND TRUE) set(SSLEAY32MD_FOUND TRUE CACHE INTERNAL "Wether the ssleay32MD library has been found" FORCE)
endif (SSLEAY32MD_LIBRARY) endif (SSLEAY32MD_LIBRARY)
if (CRYPTO_LIBRARY) if (CRYPTO_LIBRARY)
set(CRYPTO_FOUND TRUE) set(CRYPTO_FOUND TRUE CACHE INTERNAL "Wether the crypto library has been found" FORCE)
endif (CRYPTO_LIBRARY) endif (CRYPTO_LIBRARY)
set(OPENSSL_INCLUDE_DIRS set(OPENSSL_INCLUDE_DIRS
@ -113,18 +116,21 @@ else (OPENSSL_LIBRARIES AND OPENSSL_INCLUDE_DIRS)
${SSL_LIBRARY} ${SSL_LIBRARY}
) )
endif (SSL_FOUND) endif (SSL_FOUND)
if (SSLEAY32_FOUND) if (SSLEAY32_FOUND)
set(OPENSSL_LIBRARIES set(OPENSSL_LIBRARIES
${OPENSSL_LIBRARIES} ${OPENSSL_LIBRARIES}
${SSLEAY32_LIBRARY} ${SSLEAY32_LIBRARY}
) )
endif (SSLEAY32_FOUND) endif (SSLEAY32_FOUND)
if (SSLEAY32MD_FOUND) if (SSLEAY32MD_FOUND)
set(OPENSSL_LIBRARIES set(OPENSSL_LIBRARIES
${OPENSSL_LIBRARIES} ${OPENSSL_LIBRARIES}
${SSLEAY32MD_LIBRARY} ${SSLEAY32MD_LIBRARY}
) )
endif (SSLEAY32MD_FOUND) endif (SSLEAY32MD_FOUND)
if (CRYPTO_FOUND) if (CRYPTO_FOUND)
set(OPENSSL_LIBRARIES set(OPENSSL_LIBRARIES
${OPENSSL_LIBRARIES} ${OPENSSL_LIBRARIES}