--- src/osgPlugins/ffmpeg/CMakeLists.txt.orig	2015-01-07 14:14:55 UTC
+++ src/osgPlugins/ffmpeg/CMakeLists.txt
@@ -1,9 +1,9 @@
-INCLUDE_DIRECTORIES( ${FFMPEG_INCLUDE_DIRS} )
+INCLUDE_DIRECTORIES(SYSTEM ${FFMPEG_INCLUDE_DIRS})
 LINK_DIRECTORIES(${FFMPEG_LIBRARY_DIRS})
 
 IF(FFMPEG_LIBSWSCALE_FOUND)
 
-    INCLUDE_DIRECTORIES( ${FFMPEG_LIBSWSCALE_INCLUDE_DIRS} ${FFMPEG_LIBSWSCALE_INCLUDE_DIRS}/libswscale )
+    INCLUDE_DIRECTORIES(SYSTEM ${FFMPEG_LIBSWSCALE_INCLUDE_DIRS} ${FFMPEG_LIBSWSCALE_INCLUDE_DIRS}/libswscale)
 
     ADD_DEFINITIONS(-DUSE_SWSCALE)
 
@@ -12,14 +12,14 @@ IF(FFMPEG_LIBSWSCALE_FOUND)
 ENDIF()
 
 IF(FFMPEG_LIBSWRESAMPLE_FOUND)
-    INCLUDE_DIRECTORIES( ${FFMPEG_LIBSWRESAMPLE_INCLUDE_DIRS} ${FFMPEG_LIBSWRESAMPLE_INCLUDE_DIRS}/libswresample )
+    INCLUDE_DIRECTORIES(SYSTEM ${FFMPEG_LIBSWRESAMPLE_INCLUDE_DIRS} ${FFMPEG_LIBSWRESAMPLE_INCLUDE_DIRS}/libswresample)
 
     ADD_DEFINITIONS(-DUSE_SWRESAMPLE)
 
     SET(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} ${FFMPEG_LIBSWRESAMPLE_LIBRARIES})
 ENDIF()
 IF(FFMPEG_LIBAVRESAMPLE_FOUND)
-    INCLUDE_DIRECTORIES( ${FFMPEG_LIBAVRESAMPLE_INCLUDE_DIRS} ${FFMPEG_LIBAVRESAMPLE_INCLUDE_DIRS}/libavresample )
+    INCLUDE_DIRECTORIES(SYSTEM ${FFMPEG_LIBAVRESAMPLE_INCLUDE_DIRS} ${FFMPEG_LIBAVRESAMPLE_INCLUDE_DIRS}/libavresample)
 
     ADD_DEFINITIONS(-DUSE_AVRESAMPLE)
 
