From 7a9e97877ceb2f971fd73fcdf64b3ae6607b4e9f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 26 Nov 2014 16:29:43 +0000 Subject: [PATCH] Fixed deprecated warnings git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.2@14544 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgPlugins/ffmpeg/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/osgPlugins/ffmpeg/CMakeLists.txt b/src/osgPlugins/ffmpeg/CMakeLists.txt index 4c6f60270..48349787e 100644 --- a/src/osgPlugins/ffmpeg/CMakeLists.txt +++ b/src/osgPlugins/ffmpeg/CMakeLists.txt @@ -21,7 +21,7 @@ ADD_DEFINITIONS(-D__STDC_CONSTANT_MACROS) # MESSAGE("FFMPEG_LIBAVUTIL_INCLUDE_DIRS = " ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS} ) # MESSAGE("FFMPEG_LIBRARIES = " ${FFMPEG_LIBRARIES} ) -SET(TARGET_SRC +SET(TARGET_SRC FFmpegClocks.cpp FFmpegDecoderAudio.cpp FFmpegDecoder.cpp @@ -46,9 +46,8 @@ SET(TARGET_H MessageQueue.hpp ) -IF(CMAKE_COMPILER_IS_GNUCXX) - # Remove -pedantic flag as it barfs on ffmoeg headers - STRING(REGEX REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") +IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations") ENDIF() #### end var setup ###