From 8b04d023c8ca2026205d797be49a198a37d7e1f6 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 1 Apr 2022 17:25:28 -0700 Subject: [PATCH] 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. --- tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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} ) -- 2.40.0