From 227db3bb0e554f6d5a506f208026f6480e75b988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 17 Dec 2024 20:22:16 +0100 Subject: [PATCH] CMake: include 3rd party dependencies as SYSTEM to reduce warning spam. --- src/cmake/dependencies.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmake/dependencies.cmake b/src/cmake/dependencies.cmake index 1a442797a9..378fb3c952 100644 --- a/src/cmake/dependencies.cmake +++ b/src/cmake/dependencies.cmake @@ -23,7 +23,7 @@ find_package(OpenMP) # We don't find_package(OpenGL REQUIRED) here, but let Magnum do that instead # as it sets up various things related to GLVND. -include_directories("deps") +include_directories(SYSTEM "deps") # Eigen. Use a system package, if preferred. if(USE_SYSTEM_EIGEN) @@ -51,7 +51,7 @@ if(NOT USE_SYSTEM_ZSTD) endif() # tinyxml2 -include_directories("${DEPS_DIR}/tinyxml2") +include_directories(SYSTEM "${DEPS_DIR}/tinyxml2") add_subdirectory("${DEPS_DIR}/tinyxml2") # RapidJSON. Use a system package, if preferred.