]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: with OpenSSL, define OPENSSL_SUPPRESS_DEPRECATED
authorDaniel Stenberg <daniel@haxx.se>
Thu, 23 Sep 2021 12:19:49 +0000 (14:19 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 23 Sep 2021 21:30:13 +0000 (23:30 +0200)
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

index d8084de8e9123dbd3101c97630a7b3e0df38273f..cf9c390c3da2312ff29319dd37e72a3efde8b402 100644 (file)
@@ -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)