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.
issue1247
Nicolas Hake 2015-02-07 17:39:15 +01:00
parent bf1e02872d
commit e4fea50a9a
1 changed files with 4 additions and 0 deletions

View File

@ -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
)