]> granicus.if.org Git - graphviz/commitdiff
tests: suppress Boost deprecation compiler warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Apr 2022 00:25:28 +0000 (17:25 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 3 Apr 2022 01:15:16 +0000 (18:15 -0700)
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.

tests/CMakeLists.txt

index dbc4ba9f2c9ca01d2b2a111e060a9c264b54fbd4..badde15dcd4006bbe0f3ca2cd3d0bcf43715cae4 100644 (file)
@@ -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}
 )