#
# ./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.
-#
#
# ######################
#
# 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
)
ENDIF()
+
+
#
# Setup CMAKE_CXX_FLAGS<_RELEASE|_DEBUG>:
#
ENDIF(DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS)
+
#
# Setup CMAKE_C_FLAGS<_RELEASE|_DEBUG>:
#
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")