This commit is contained in:
Ewerton Scaboro da Silva 2023-05-15 15:41:04 -07:00
Родитель 9c39704c3d
Коммит dcea390fd5
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -29,7 +29,7 @@ option(use_builtin_httpapi "set use_builtin_httpapi to ON to use the built-in ht
option(use_cppunittest "set use_cppunittest to ON to build CppUnitTest tests on Windows (default is OFF)" OFF)
option(suppress_header_searches "do not try to find headers - used when compiler check will fail" OFF)
option(use_custom_heap "use externally defined heap functions instead of the malloc family" OFF)
option(no_openssl_engine "Disables the use of ENGINEs in OpenSSL, if the target version supports it" OFF)
option(no_openssl_engine "Disables the use of ENGINEs in OpenSSL" OFF)
if(${use_custom_heap})
add_definitions(-DGB_USE_CUSTOM_HEAP)
@ -121,6 +121,9 @@ if(${use_openssl})
find_package(OpenSSL REQUIRED)
endif()
# The block below enables the v1 back-compatibility layer in OpenSSL 3,
# if using that version or later. For reference, please check the OpenSSL
# official documentation: https://www.openssl.org/docs/man3.0/man7/openssl_user_macros.html
if (DEFINED OPENSSL_VERSION AND (${OPENSSL_VERSION} GREATER_EQUAL 3))
add_definitions(-DOPENSSL_API_COMPAT=0x10101000L)
endif()