From 3455d29d7b29dd6c2183b513169eb64df51bd622 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 23 Sep 2021 14:19:49 +0200 Subject: 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 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d8084de8e..cf9c390c3 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) -- cgit v1.2.1