From: Matthew Fernandez Date: Sat, 2 Apr 2022 00:25:28 +0000 (-0700) Subject: tests: suppress Boost deprecation compiler warnings X-Git-Tag: 4.0.0~139^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b04d023c8ca2026205d797be49a198a37d7e1f6;p=graphviz tests: suppress Boost deprecation compiler warnings The third-party library Svgpp calls Boost in a way that is deprecated, resulting in compiler warnings during the CMake build. This change teaches CMake that none of this is our code and we do not want to be warned about it. --- diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index dbc4ba9f2..badde15dc 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -23,8 +23,10 @@ add_library(test_common STATIC set_target_properties(test_common PROPERTIES CXX_STANDARD 20) set_target_properties(test_common PROPERTIES CXX_STANDARD_REQUIRED ON) target_include_directories(test_common PRIVATE - ${Boost_INCLUDE_DIRS} ${GRAPHVIZ_LIB_DIR} +) +target_include_directories(test_common SYSTEM PRIVATE + ${Boost_INCLUDE_DIRS} ${RAPIDXML_INCLUDE_DIRS} ${SVGPP_INCLUDE_DIRS} )