From 8189702ef342290bcfde9309ed313e7976b65db0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Fri, 17 Feb 2012 17:45:58 -0500 Subject: [PATCH] channels/tsmf: disable deprecation warning --- channels/drdynvc/tsmf/ffmpeg/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/channels/drdynvc/tsmf/ffmpeg/CMakeLists.txt b/channels/drdynvc/tsmf/ffmpeg/CMakeLists.txt index ea0b1010b..22e208e5f 100644 --- a/channels/drdynvc/tsmf/ffmpeg/CMakeLists.txt +++ b/channels/drdynvc/tsmf/ffmpeg/CMakeLists.txt @@ -27,6 +27,13 @@ include_directories(${FFMPEG_INCLUDE_DIRS}) add_library(tsmf_ffmpeg ${TSMF_FFMPEG_SRCS}) set_target_properties(tsmf_ffmpeg PROPERTIES PREFIX "") +if(CMAKE_COMPILER_IS_GNUCC) + CHECK_C_COMPILER_FLAG(-Wno-deprecated-declarations Wno-deprecated-declarations) + if(Wno-deprecated-declarations) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations") + endif() +endif() + target_link_libraries(tsmf_ffmpeg freerdp-utils) target_link_libraries(tsmf_ffmpeg ${FFMPEG_LIBRARIES})