From d92d74b607555d87e6fec372eebc084074ab0bac Mon Sep 17 00:00:00 2001 From: hackpulsar Date: Wed, 29 Apr 2026 20:36:13 +0200 Subject: [PATCH] supress ALL curlpp warnings --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f667656..3746276 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,13 +16,20 @@ FetchContent_Declare( GIT_SHALLOW ON ) FetchContent_MakeAvailable(curlpp) + # suppress warnings + foreach(target curlpp curlpp_static) if(TARGET ${target}) target_compile_options(${target} PRIVATE -Wno-deprecated-declarations) endif() endforeach() +get_target_property(CURLPP_INCLUDES curlpp INTERFACE_INCLUDE_DIRECTORIES) +set_target_properties(curlpp PROPERTIES + INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${CURLPP_INCLUDES}" +) + # nlohmann_json FetchContent_Declare( nlohmann_json