From: Timo Heister Date: Mon, 15 Feb 2016 14:03:29 +0000 (-0500) Subject: skip -pedantic if no cxx11 X-Git-Tag: v8.4.0-rc2~1^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f0cc7d4b8e5d0c7cefb5572ed3d375ffd9840f0;p=dealii.git skip -pedantic if no cxx11 --- diff --git a/cmake/checks/check_03_compiler_bugs.cmake b/cmake/checks/check_03_compiler_bugs.cmake index 03d63f6ab1..2971336755 100644 --- a/cmake/checks/check_03_compiler_bugs.cmake +++ b/cmake/checks/check_03_compiler_bugs.cmake @@ -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