FindOpenSSL: Fixed crypto und ssl variable names.

This commit is contained in:
Andreas Schneider 2011-03-28 18:42:20 +02:00 committed by Brad King
parent a164649f9d
commit a091ba61ce
1 changed files with 8 additions and 4 deletions

View File

@ -183,7 +183,7 @@ IF(WIN32 AND NOT CYGWIN)
ENDIF(MSVC)
ELSE(WIN32 AND NOT CYGWIN)
FIND_LIBRARY(OPENSSL_SSL_LIBRARIES
FIND_LIBRARY(OPENSSL_SSL_LIBRARY
NAMES
ssl
ssleay32
@ -195,7 +195,7 @@ ELSE(WIN32 AND NOT CYGWIN)
lib
)
FIND_LIBRARY(OPENSSL_CRYPTO_LIBRARIES
FIND_LIBRARY(OPENSSL_CRYPTO_LIBRARY
NAMES
crypto
HINTS
@ -205,9 +205,13 @@ ELSE(WIN32 AND NOT CYGWIN)
lib
)
MARK_AS_ADVANCED(OPENSSL_CRYPTO_LIBRARIES OPENSSL_SSL_LIBRARIES)
MARK_AS_ADVANCED(OPENSSL_CRYPTO_LIBRARY OPENSSL_SSL_LIBRARY)
SET(OPENSSL_LIBRARIES ${OPENSSL_SSL_LIBRARIES} ${OPENSSL_CRYPTO_LIBRARIES})
# compat defines
SET(OPENSSL_SSL_LIBRARIES ${OPENSSL_SSL_LIBRARY})
SET(OPENSSL_CRYPTO_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY})
SET(OPENSSL_LIBRARIES ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY})
ENDIF(WIN32 AND NOT CYGWIN)