Detect and handle OpenSSL 1.1
OpenSSL 1.1 supports most of the native threading libraries, including pthread. This means that only versions before 1.1 need the thread handling code.
This commit is contained in:
@ -84,8 +84,10 @@ if(NOT OPENSSL_FOUND)
|
||||
else()
|
||||
if(OPENSSL_VERSION VERSION_LESS 1 AND NOT FORCE_OPENSSL100)
|
||||
add_definitions("-DOPENSSL_0_9")
|
||||
else()
|
||||
elseif(OPENSSL_VERSION VERSION_LESS 1.1)
|
||||
add_definitions("-DOPENSSL_1_0")
|
||||
else()
|
||||
add_definitions("-DOPENSSL_1_1")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user