From 5d5d5b79203670dc4dbe0c8a51063f7d1d95d6dd Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Thu, 23 Mar 2023 20:21:13 +0200 Subject: [PATCH] Disable CURL deprecation warnings. --- vendor/CPR/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vendor/CPR/CMakeLists.txt b/vendor/CPR/CMakeLists.txt index 0696dde2..dcf56b96 100644 --- a/vendor/CPR/CMakeLists.txt +++ b/vendor/CPR/CMakeLists.txt @@ -51,6 +51,10 @@ add_library(CPR STATIC # Library includes target_include_directories(CPR PRIVATE ${CMAKE_CURRENT_LIST_DIR}/cpr) target_include_directories(CPR PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include) +# Disable deprecated warnings +if (NOT MSVC) + target_compile_options(CPR PRIVATE -Wno-deprecated-declarations) +endif() # Find CURK find_package(CURL REQUIRED) if (CURL_FOUND)