Add definition for OpenSSL 3 to support OpenSSL 1.1.1 backcompatibility
For reference, please see https://www.openssl.org/docs/man3.0/man7/openssl_user_macros.html
This commit is contained in:
Родитель
c7d0041671
Коммит
9c2d54c335
|
@ -115,6 +115,11 @@ if(${use_openssl})
|
|||
if (NOT TARGET OpenSSL::SSL OR NOT TARGET OpenSSL::Crypto OR NOT ${OPENSSL_INCLUDE_DIR})
|
||||
find_package(OpenSSL REQUIRED)
|
||||
endif()
|
||||
|
||||
if (DEFINED OPENSSL_VERSION AND (${OPENSSL_VERSION} GREATER_EQUAL 3))
|
||||
add_definitions(-DOPENSSL_API_COMPAT=0x10101000L)
|
||||
endif()
|
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче