From 1dca9b9dbc9c790d627e8112adae7333c7a450f7 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Sun, 6 Aug 2023 16:58:30 +1000 Subject: [PATCH] Treat external includes as system libraries, so we don't get warnings when compiling them --- src/core/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 329545cfc26..d2618b3646a 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -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