chore(thirdparty): mark third-party include paths as SYSTEM (#413)

Add SYSTEM to target_include_directories in vendored CMake wrappers and
set INTERFACE_SYSTEM_INCLUDE_DIRECTORIES on imported / sub-project
targets so warnings from third-party headers no longer surface in our
build output. Introduces a mark_target_includes_system() helper in
cmake/utils.cmake (resolves aliases, skips missing targets) used by the
upstream-add_subdirectory wrappers (glog, gflags, googletest, yaml-cpp,
protobuf, antlr).
This commit is contained in:
egolearner
2026-05-19 15:03:07 +08:00
committed by GitHub
parent d580c08187
commit 51c6d9e0ec
14 changed files with 46 additions and 7 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
add_library(magic_enum INTERFACE)
target_include_directories(
magic_enum INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/magic_enum-0.9.7/include/"
magic_enum SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/magic_enum-0.9.7/include/"
)