|
@@ -200,12 +200,8 @@ if(WIN32 AND NOT CYGWIN)
|
|
|
set(OPENSSL_LIBRARIES ${SSL_EAY_LIBRARY} ${LIB_EAY_LIBRARY} )
|
|
set(OPENSSL_LIBRARIES ${SSL_EAY_LIBRARY} ${LIB_EAY_LIBRARY} )
|
|
|
elseif(MINGW)
|
|
elseif(MINGW)
|
|
|
# same player, for MinGW
|
|
# same player, for MinGW
|
|
|
- set(LIB_EAY_NAMES libeay32)
|
|
|
|
|
- set(SSL_EAY_NAMES ssleay32)
|
|
|
|
|
- if(CMAKE_CROSSCOMPILING)
|
|
|
|
|
- list(APPEND LIB_EAY_NAMES crypto)
|
|
|
|
|
- list(APPEND SSL_EAY_NAMES ssl)
|
|
|
|
|
- endif()
|
|
|
|
|
|
|
+ set(LIB_EAY_NAMES crypto libeay32)
|
|
|
|
|
+ set(SSL_EAY_NAMES ssl ssleay32)
|
|
|
find_library(LIB_EAY
|
|
find_library(LIB_EAY
|
|
|
NAMES
|
|
NAMES
|
|
|
${LIB_EAY_NAMES}
|
|
${LIB_EAY_NAMES}
|
|
@@ -325,7 +321,7 @@ endfunction()
|
|
|
if (OPENSSL_INCLUDE_DIR)
|
|
if (OPENSSL_INCLUDE_DIR)
|
|
|
if(OPENSSL_INCLUDE_DIR AND EXISTS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h")
|
|
if(OPENSSL_INCLUDE_DIR AND EXISTS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h")
|
|
|
file(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" openssl_version_str
|
|
file(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" openssl_version_str
|
|
|
- REGEX "^# *define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x([0-9a-fA-F])+.*")
|
|
|
|
|
|
|
+ REGEX "^#[\t ]*define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x([0-9a-fA-F])+.*")
|
|
|
|
|
|
|
|
# The version number is encoded as 0xMNNFFPPS: major minor fix patch status
|
|
# The version number is encoded as 0xMNNFFPPS: major minor fix patch status
|
|
|
# The status gives if this is a developer or prerelease and is ignored here.
|
|
# The status gives if this is a developer or prerelease and is ignored here.
|