]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Set the Cflags globally.
authorMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 19 Sep 2012 12:23:23 +0000 (12:23 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 19 Sep 2012 12:23:23 +0000 (12:23 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26503 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/cmake/setup_compiler_flags.cmake

index 25590ee0878b7bc41d39665d8609f54e54a4a8ed..494d51f9a67cbad099f8678fb1e46bf05d036539 100644 (file)
 #
 # ./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")

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.