From bb4c84f57fc679b8141aacaa7720358555c06337 Mon Sep 17 00:00:00 2001 From: maier Date: Thu, 7 Mar 2013 12:04:51 +0000 Subject: [PATCH] Add -Wno-deprecated for compiling internal stuff git-svn-id: https://svn.dealii.org/branches/branch_cmake@28782 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/config/CMakeLists.txt | 1 + deal.II/cmake/setup_compiler_flags_gnu.cmake | 1 + 2 files changed, 2 insertions(+) diff --git a/deal.II/cmake/config/CMakeLists.txt b/deal.II/cmake/config/CMakeLists.txt index 02fc4adc99..a7b65eaa7d 100644 --- a/deal.II/cmake/config/CMakeLists.txt +++ b/deal.II/cmake/config/CMakeLists.txt @@ -47,6 +47,7 @@ INSTALL(FILES # Strip -Wno-deprecated from CMAKE_CXX_FLAGS so that deprecation warnings # are actually shown for user code: # +STRIP_FLAG(CMAKE_CXX_FLAGS "-Wno-deprecated") STRIP_FLAG(CMAKE_CXX_FLAGS "-Wno-deprecated-declarations") # diff --git a/deal.II/cmake/setup_compiler_flags_gnu.cmake b/deal.II/cmake/setup_compiler_flags_gnu.cmake index c41b2400e6..23c3cd396d 100644 --- a/deal.II/cmake/setup_compiler_flags_gnu.cmake +++ b/deal.II/cmake/setup_compiler_flags_gnu.cmake @@ -83,6 +83,7 @@ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-unused-local-typedefs") # # Disable deprecation warnings # +ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-deprecated") ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-deprecated-declarations") -- 2.39.5