Skip to content

Commit

Permalink
Treat external includes as system libraries, so we don't get warnings
Browse files Browse the repository at this point in the history
when compiling them
  • Loading branch information
nyalldawson committed Aug 6, 2023
1 parent d611b68 commit 1dca9b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2308,6 +2308,10 @@ target_include_directories(qgis_core PUBLIC
validity
vector
vectortile
)

# treat these as system libraries -- we don't want warnings from them
target_include_directories(qgis_core SYSTEM PUBLIC
${CMAKE_SOURCE_DIR}/external
${CMAKE_SOURCE_DIR}/external/nlohmann
${CMAKE_SOURCE_DIR}/external/kdbush/include
Expand Down

0 comments on commit 1dca9b9

Please sign in to comment.