From: maier Date: Wed, 2 Jan 2013 12:15:45 +0000 (+0000) Subject: Compile the functionparser target without -Wall -pedantic X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9507ba10b65d2ff87c31df2fa5392a59f9adb191;p=dealii-svn.git Compile the functionparser target without -Wall -pedantic git-svn-id: https://svn.dealii.org/branches/branch_cmake@27891 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/bundled/functionparser/CMakeLists.txt b/deal.II/bundled/functionparser/CMakeLists.txt index 795339893b..ed9c017b31 100644 --- a/deal.II/bundled/functionparser/CMakeLists.txt +++ b/deal.II/bundled/functionparser/CMakeLists.txt @@ -12,6 +12,13 @@ ## ##### +# +# Remove -Wall and -pedantic from CMAKE_CXX_FLAGS (in directory scope) to +# aboid some annoying warnings... +# +STRIP_FLAG(CMAKE_CXX_FLAGS "-Wall") +STRIP_FLAG(CMAKE_CXX_FLAGS "-pedantic") + DEAL_II_ADD_LIBRARY(obj_functionparser OBJECT fparser.cc fpoptimizer.cc diff --git a/deal.II/cmake/setup_compiler_flags_gnu.cmake b/deal.II/cmake/setup_compiler_flags_gnu.cmake index 4a7a402678..2a9f0285ad 100644 --- a/deal.II/cmake/setup_compiler_flags_gnu.cmake +++ b/deal.II/cmake/setup_compiler_flags_gnu.cmake @@ -81,7 +81,6 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang") # (that are mainly triggered in third party headers so that we cannot # easily fix them...) # - ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-c99-extensions") ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-delete-non-virtual-dtor") # not harmless but needed for boost <1.50.0 ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-long-long") ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-newline-eof")