From f29e119c2556db33a337b6317464eb06fe4a9763 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 7 May 2009 15:11:04 +0000 Subject: Improve OpenSSL cmake checks. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@752 7dcaeef0-15fb-0310-b436-a5af3365683c --- cmake/Modules/FindOpenSSL.cmake | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'cmake/Modules/FindOpenSSL.cmake') diff --git a/cmake/Modules/FindOpenSSL.cmake b/cmake/Modules/FindOpenSSL.cmake index 85c7473e..1943c666 100644 --- a/cmake/Modules/FindOpenSSL.cmake +++ b/cmake/Modules/FindOpenSSL.cmake @@ -91,16 +91,19 @@ else (OPENSSL_LIBRARIES AND OPENSSL_INCLUDE_DIRS) mark_as_advanced(CRYPTO_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) + if (SSLEAY32_LIBRARY) - set(SSLEAY32_FOUND TRUE) + set(SSLEAY32_FOUND TRUE CACHE INTERNAL "Wether the ssleay32 library has been found" FORCE) endif (SSLEAY32_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) + if (CRYPTO_LIBRARY) - set(CRYPTO_FOUND TRUE) + set(CRYPTO_FOUND TRUE CACHE INTERNAL "Wether the crypto library has been found" FORCE) endif (CRYPTO_LIBRARY) set(OPENSSL_INCLUDE_DIRS @@ -113,18 +116,21 @@ else (OPENSSL_LIBRARIES AND OPENSSL_INCLUDE_DIRS) ${SSL_LIBRARY} ) endif (SSL_FOUND) + if (SSLEAY32_FOUND) set(OPENSSL_LIBRARIES ${OPENSSL_LIBRARIES} ${SSLEAY32_LIBRARY} ) endif (SSLEAY32_FOUND) + if (SSLEAY32MD_FOUND) set(OPENSSL_LIBRARIES ${OPENSSL_LIBRARIES} ${SSLEAY32MD_LIBRARY} ) endif (SSLEAY32MD_FOUND) + if (CRYPTO_FOUND) set(OPENSSL_LIBRARIES ${OPENSSL_LIBRARIES} -- cgit v1.2.3