Permalink
Browse files

Mark include paths of external projects as SYSTEM to disable warnings.

  • Loading branch information...
1 parent 42fbc54 commit b1323e6acd80b0b331d74c636c04e12658b25a10 @dscharrer dscharrer committed May 18, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 CMakeLists.txt
View
@@ -288,14 +288,15 @@ file(GLOB_RECURSE ALL_INCLUDES ${SRC_DIR}/*.h)
set(ALL_SOURCES ${AI_SOURCES} ${ANIMATION_SOURCES} ${AUDIO_SOURCES} ${CORE_SOURCES} ${GAME_SOURCES} ${GRAPHICS_SOURCES} ${GUI_SOURCES} ${IO_SOURCES} ${PHYSICS_SOURCES} ${PLATFORM_SOURCES} ${SCENE_SOURCES} ${SCRIPTING_SOURCES} ${WINDOW_SOURCES})
-include_directories(${SRC_DIR} ${ZLIB_INCLUDE_DIRS} ${IL_INCLUDE_DIR} ${FREETYPE_INCLUDE_DIRS})
+include_directories(${SRC_DIR})
+include_directories(SYSTEM ${ZLIB_INCLUDE_DIRS} ${IL_INCLUDE_DIR} ${FREETYPE_INCLUDE_DIRS})
if(ARX_USE_OPENAL)
set(ALL_SOURCES ${ALL_SOURCES} ${AUDIO_OPENAL_SOURCES})
- include_directories(${OPENAL_INCLUDE_DIR})
+ include_directories(SYSTEM ${OPENAL_INCLUDE_DIR})
add_definitions(-DHAVE_OPENAL)
if(OPENALEFX_FOUND)
- include_directories(${OPENAL_EFX_INCLUDE_DIR})
+ include_directories(SYSTEM ${OPENAL_EFX_INCLUDE_DIR})
add_definitions(-DHAVE_OPENAL_EFX)
endif()
endif()

0 comments on commit b1323e6

Please sign in to comment.