summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenSSL.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-03-28 16:42:20 (GMT)
committerBrad King <brad.king@kitware.com>2011-03-31 12:43:24 (GMT)
commita091ba61ceec68069be8416d8c96571b16491f3a (patch)
treea99ad0cb8aaa3ac2be5b4c2642a901b39fb0e822 /Modules/FindOpenSSL.cmake
parenta164649f9d4664e192b421d5b72f8bcfaacd7a16 (diff)
downloadCMake-a091ba61ceec68069be8416d8c96571b16491f3a.zip
CMake-a091ba61ceec68069be8416d8c96571b16491f3a.tar.gz
CMake-a091ba61ceec68069be8416d8c96571b16491f3a.tar.bz2
FindOpenSSL: Fixed crypto und ssl variable names.
Diffstat (limited to 'Modules/FindOpenSSL.cmake')
-rw-r--r--Modules/FindOpenSSL.cmake12
1 files changed, 8 insertions, 4 deletions
diff --git a/Modules/FindOpenSSL.cmake b/Modules/FindOpenSSL.cmake
index 8f2c019..b854e42 100644
--- a/Modules/FindOpenSSL.cmake
+++ b/Modules/FindOpenSSL.cmake
@@ -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)