From: Matthias Maier Date: Wed, 19 Sep 2012 12:23:23 +0000 (+0000) Subject: Set the Cflags globally. X-Git-Tag: v8.0.0~1079^2~789 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40f784a83c0615f8f50b8ea7736b993a15486f61;p=dealii.git Set the Cflags globally. git-svn-id: https://svn.dealii.org/branches/branch_cmake@26503 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/contrib/cmake/setup_compiler_flags.cmake b/deal.II/contrib/cmake/setup_compiler_flags.cmake index 25590ee087..494d51f9a6 100644 --- a/deal.II/contrib/cmake/setup_compiler_flags.cmake +++ b/deal.II/contrib/cmake/setup_compiler_flags.cmake @@ -26,12 +26,8 @@ # # ./check/check_for_compiler_bugs.cmake # -# and enable language features: -# # ./check/check_for_cxx_features.cmake # -# TODO: There is a bit of ambiguity. Clarify with Wolfgang. -# # @@ -40,7 +36,7 @@ # ###################### # # For the moment we assume that CC and CXX are the same compiler. -# (We only need CC for the compilation of the bundled umfpack library.) +# We need CC for the compilation of the bundled umfpack library only... # So, give a prominent error message in case CC and CXX differ: # IF(NOT ( ${CMAKE_C_COMPILER_ID} STREQUAL ${CMAKE_CXX_COMPILER_ID} AND @@ -53,6 +49,8 @@ IF(NOT ( ${CMAKE_C_COMPILER_ID} STREQUAL ${CMAKE_CXX_COMPILER_ID} AND ) ENDIF() + + # # Setup CMAKE_CXX_FLAGS<_RELEASE|_DEBUG>: # @@ -84,6 +82,7 @@ ELSE(DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS) ENDIF(DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS) + # # Setup CMAKE_C_FLAGS<_RELEASE|_DEBUG>: # @@ -98,8 +97,10 @@ SET(CMAKE_C_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE}) SET(CMAKE_C_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG}) # -# Strip some CXX-only flags +# Strip some -W* flags and all CXX-only flags. +# This is mainly to silence the build of contrib UMFPACK. # - +STRIP_FLAG(CMAKE_C_FLAGS "-Wall") STRIP_FLAG(CMAKE_C_FLAGS "-Wsynth") +STRIP_FLAG(CMAKE_C_FLAGS "-Wsign-compare") STRIP_FLAG(CMAKE_C_FLAGS_RELEASE "-felide-constructors")