Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading