diff options
Diffstat (limited to 'cmake/ssl.cmake')
-rw-r--r-- | cmake/ssl.cmake | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/cmake/ssl.cmake b/cmake/ssl.cmake index 949f39f66c2..0eabcba24c3 100644 --- a/cmake/ssl.cmake +++ b/cmake/ssl.cmake @@ -170,15 +170,6 @@ MACRO (MYSQL_CHECK_SSL) OPENSSL_MAJOR_VERSION "${OPENSSL_VERSION_NUMBER}" ) - IF(OPENSSL_INCLUDE_DIR AND - OPENSSL_LIBRARIES AND - CRYPTO_LIBRARY - ) - SET(OPENSSL_FOUND TRUE) - ELSE() - SET(OPENSSL_FOUND FALSE) - ENDIF() - MESSAGE(STATUS "OPENSSL_INCLUDE_DIR = ${OPENSSL_INCLUDE_DIR}") MESSAGE(STATUS "OPENSSL_LIBRARIES = ${OPENSSL_LIBRARIES}") MESSAGE(STATUS "CRYPTO_LIBRARY = ${CRYPTO_LIBRARY}") @@ -188,7 +179,8 @@ MACRO (MYSQL_CHECK_SSL) SET(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR}) CHECK_SYMBOL_EXISTS(SHA512_DIGEST_LENGTH "openssl/sha.h" HAVE_SHA512_DIGEST_LENGTH) - IF(OPENSSL_FOUND AND HAVE_SHA512_DIGEST_LENGTH) + IF(OPENSSL_INCLUDE_DIR AND OPENSSL_LIBRARIES AND + CRYPTO_LIBRARY AND HAVE_SHA512_DIGEST_LENGTH) SET(SSL_SOURCES "") SET(SSL_LIBRARIES ${OPENSSL_LIBRARIES} ${CRYPTO_LIBRARY}) IF(CMAKE_SYSTEM_NAME MATCHES "SunOS") |