From 2092450ce2c3fa54054180eebf00211b211760c7 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 15 Feb 2016 09:03:29 -0500 Subject: [PATCH] skip -pedantic if no cxx11 --- cmake/checks/check_03_compiler_bugs.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.39.5