From e4fea50a9ad29ec79fb2b38a16bd7a38113cfca8 Mon Sep 17 00:00:00 2001 From: Nicolas Hake Date: Sat, 7 Feb 2015 17:39:15 +0100 Subject: [PATCH] Mark thirdparty as system headers so we don't get warnings from there thirdparty needs to be pristine code so we can update those libraries without having to figure out whether we need to apply some more patches. This means we can't easily fix warnings in there; telling GCC that these are system headers means it won't emit any. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b9c5131ea..b3b575f4c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -748,6 +748,10 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/src/player ${CMAKE_CURRENT_SOURCE_DIR}/src/res ${CMAKE_CURRENT_SOURCE_DIR}/src/script +) + +# Mark thirdparty as system headers so we don't get warnings from them +include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty )