From: maier Date: Tue, 26 Feb 2013 10:50:02 +0000 (+0000) Subject: Disable deprecation warnings when compiling deal.II itself X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cb299fb987791fe570177f28c25cb138024939d;p=dealii-svn.git Disable deprecation warnings when compiling deal.II itself git-svn-id: https://svn.dealii.org/branches/branch_cmake@28569 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/config/CMakeLists.txt b/deal.II/cmake/config/CMakeLists.txt index 579bdfbbcb..6206c9be67 100644 --- a/deal.II/cmake/config/CMakeLists.txt +++ b/deal.II/cmake/config/CMakeLists.txt @@ -43,6 +43,12 @@ 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") + # # Populate a bunch of CONFIG_* variables with useful information: # diff --git a/deal.II/cmake/setup_compiler_flags_gnu.cmake b/deal.II/cmake/setup_compiler_flags_gnu.cmake index 52a9f542d2..f24b10dbb9 100644 --- a/deal.II/cmake/setup_compiler_flags_gnu.cmake +++ b/deal.II/cmake/setup_compiler_flags_gnu.cmake @@ -73,6 +73,11 @@ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wswitch") # ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-unused-local-typedefs") +# +# Disable deprecation warnings +# +ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-deprecated") + IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang") #