From: Daniel Stenberg Date: Thu, 23 Sep 2021 12:19:49 +0000 (+0200) Subject: cmake: with OpenSSL, define OPENSSL_SUPPRESS_DEPRECATED X-Git-Tag: curl-7_80_0~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3455d29d7b29dd6c2183b513169eb64df51bd622;p=thirdparty%2Fcurl.git cmake: with OpenSSL, define OPENSSL_SUPPRESS_DEPRECATED To avoid the "... is deprecated" warnings brought by OpenSSL v3. (We need to address the underlying code at some point of course.) Assisted-by: Jakub Zakrzewski Closes #7767 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d8084de8e9..cf9c390c3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -445,6 +445,8 @@ if(CMAKE_USE_OPENSSL) check_symbol_exists(RAND_status "${CURL_INCLUDES}" HAVE_RAND_STATUS) check_symbol_exists(RAND_screen "${CURL_INCLUDES}" HAVE_RAND_SCREEN) check_symbol_exists(RAND_egd "${CURL_INCLUDES}" HAVE_RAND_EGD) + + add_definitions(-DOPENSSL_SUPPRESS_DEPRECATED) endif() if(CMAKE_USE_MBEDTLS)