]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Disable deprecation warnings when compiling deal.II itself
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Feb 2013 10:50:02 +0000 (10:50 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Feb 2013 10:50:02 +0000 (10:50 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28569 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/config/CMakeLists.txt
deal.II/cmake/setup_compiler_flags_gnu.cmake

index 579bdfbbcbad97809415394f800318242dd3063b..6206c9be6709b124a03da30ee5ae8634ff08b92f 100644 (file)
@@ -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:
 #
index 52a9f542d2d3495cbea53bfd5580e2f715f9f4e1..f24b10dbb9fde9b4c10a6fd76ca224d661ff85c7 100644 (file)
@@ -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")
   #

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.