Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
bagder committed Sep 23, 2021
1 parent 23ca537 commit fa10731
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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)

set(CMAKE_REQUIRED_FLAGS "-DOPENSSL_SUPPRESS_DEPRECATED")
endif()

if(CMAKE_USE_MBEDTLS)
Expand Down

0 comments on commit fa10731

Please sign in to comment.