]> https://gitweb.dealii.org/ - dealii.git/commitdiff
skip -pedantic if no cxx11
authorTimo Heister <timo.heister@gmail.com>
Mon, 15 Feb 2016 14:03:29 +0000 (09:03 -0500)
committerTimo Heister <timo.heister@gmail.com>
Mon, 15 Feb 2016 16:15:53 +0000 (11:15 -0500)
cmake/checks/check_03_compiler_bugs.cmake

index 03d63f6ab1101c4589fc5ef1a5d47ecad650ef3f..2971336755f363979f1ba30cedab8c5a5ff841a1 100644 (file)
@@ -61,6 +61,17 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND
 ENDIF()
 
 
+#
+# Newer gcc versions generate a large number of warnings inside boost if we
+# are compiling without cxx11 but with -pedantic and there is no way to
+# silence them.
+#
+IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND
+   NOT DEAL_II_WITH_CXX11)
+  STRIP_FLAG(DEAL_II_CXX_FLAGS "-pedantic")
+ENDIF()
+
+
 #
 # In some cases, we would like to name partial specializations
 # as friends. However, the standard forbids us to do so. But

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.