[Orxonox-commit 7096] r11713 - code/trunk/src

landauf at orxonox.net landauf at orxonox.net
Sun Jan 7 11:54:22 CET 2018


Author: landauf
Date: 2018-01-07 11:54:22 +0100 (Sun, 07 Jan 2018)
New Revision: 11713

Modified:
   code/trunk/src/SourceConfig.cmake
Log:
mark includes of external libraries as "SYSTEM" includes to avoid compiler warnings about code that we can't change anyways. in gcc this leads to the -isystem option being used instead of -I

Modified: code/trunk/src/SourceConfig.cmake
===================================================================
--- code/trunk/src/SourceConfig.cmake	2018-01-07 10:51:05 UTC (rev 11712)
+++ code/trunk/src/SourceConfig.cmake	2018-01-07 10:54:22 UTC (rev 11713)
@@ -102,7 +102,11 @@
   # Include directories needed even if only included by Orxonox
   ../src/external/bullet
   ../src/external/ois
+)
 
+INCLUDE_DIRECTORIES(
+  SYSTEM
+  
   # External
   ${OGRE_INCLUDE_DIR}
   ${CEGUI_INCLUDE_DIR}
@@ -121,11 +125,11 @@
 )
 
 IF(CEGUI_OLD_VERSION)
-  INCLUDE_DIRECTORIES(${CEGUILUA_INCLUDE_DIR})
+  INCLUDE_DIRECTORIES(SYSTEM ${CEGUILUA_INCLUDE_DIR})
 ENDIF()
 
 IF (DBGHELP_FOUND)
-  INCLUDE_DIRECTORIES(${DBGHELP_INCLUDE_DIR})
+  INCLUDE_DIRECTORIES(SYSTEM ${DBGHELP_INCLUDE_DIR})
 ENDIF()
 
 ############## CEGUI OGRE Renderer ##############



More information about the Orxonox-commit mailing list