From f0326620520bafb728f4f4f3133e001c25cc57de Mon Sep 17 00:00:00 2001 From: Sven Eberhardt Date: Sat, 7 Feb 2015 22:02:42 +0100 Subject: [PATCH] Mark getopt and tinyxml thirdparty includes as system libraries. This should silence some warnings occuring in thirdparty code so warnings in our own code get the exposition they deserve. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3b575f4c..66b596330 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1280,7 +1280,7 @@ endif() ############################################################################ CHECK_INCLUDE_FILE_CXX(getopt.h HAVE_GETOPT_H) if(NOT HAVE_GETOPT_H) - include_directories(thirdparty/getopt) + include_directories(SYSTEM thirdparty/getopt) add_subdirectory(thirdparty/getopt) target_link_libraries(openclonk getopt) elseif(MINGW) @@ -1299,7 +1299,7 @@ if(WITH_SYSTEM_TINYXML) target_link_libraries(openclonk ${TINYXML_LIBRARIES}) else() add_subdirectory(thirdparty/tinyxml) - include_directories(thirdparty/tinyxml) + include_directories(SYSTEM thirdparty/tinyxml) target_link_libraries(openclonk tinyxml) endif()