From 599e4e8bd2f066623861527e53c6c151a3d5886c Mon Sep 17 00:00:00 2001 From: Tom Finegan Date: Thu, 25 Feb 2016 09:37:11 -0800 Subject: [PATCH] cmake: Silence clang/gcc deprecation warnings. Parts of libwebm continue to use std::auto_ptr for support of older compilers and target systems. Silence the warnings its use causes. Change-Id: Iac8f35c9fdaaeb1cbb637d0777b46cdad54843ed --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7adf409..106f7e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,8 @@ if (MSVC) set(CMAKE_CXX_FLAGS "/W4 ${CMAKE_CXX_FLAGS}" CACHE STRING "" FORCE) else () set(CMAKE_CXX_FLAGS "-Wall -Wextra ${CMAKE_CXX_FLAGS}" CACHE STRING "" FORCE) + set(CMAKE_CXX_FLAGS "-Wno-deprecated ${CMAKE_CXX_FLAGS}" CACHE + STRING "" FORCE) endif () # Libwebm section.