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.
issue1247
Sven Eberhardt 2015-02-07 22:02:42 +01:00
parent 38e0e0d299
commit f032662052
1 changed files with 2 additions and 2 deletions

View File

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