Skip to content

Commit

Permalink
CMake: include 3rd party dependencies as SYSTEM to reduce warning spam.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Dec 17, 2024
1 parent 2fff822 commit 227db3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 227db3b

Please sign in to comment.