]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Update
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Sep 2012 15:05:08 +0000 (15:05 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Sep 2012 15:05:08 +0000 (15:05 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26511 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/cmake/check/check_for_compiler_bugs.cmake
deal.II/contrib/cmake/check/check_for_compiler_features.cmake

index ee3511f7e5ef1ad995ad7a2191ed3fe761e93574..68bfbc4b905883f20c1c8b22d31bf32c1d2650eb 100644 (file)
@@ -57,6 +57,8 @@ ENDIF()
 # that the workaround fails with some other compilers, so that
 # we can not unconditionally use the workaround...
 #
+# - maier, rewritten 2012
+#
 CHECK_CXX_COMPILER_BUG(
   "
   namespace dealii
@@ -91,6 +93,8 @@ CHECK_CXX_COMPILER_BUG(
 # in some of our template trickery with iterator classes. If necessary,
 # do not use the relevant warning flag
 #
+# - maier, rewritten 2012
+#
 LIST(APPEND CMAKE_REQUIRED_FLAGS "-Wreturn-type -Werror")
 CHECK_CXX_COMPILER_BUG(
   "
@@ -116,6 +120,8 @@ ENDIF()
 # This can be avoided by not using -pedantic for this compiler.
 # For all other versions, we use this flag, however.
 #
+# - maier, rewritten 2012
+#
 IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND
    CMAKE_CXX_COMPILER_VERSION MATCHES "4.4.")
   STRIP_FLAG(CMAKE_CXX_FLAGS "-pedantic")
@@ -131,6 +137,8 @@ ENDIF()
 # warning messages. Since this is annoying, switch of the flag -W which
 # causes this.
 #
+# - maier, rewritten 2012
+#
 
 # TODO: We use the mpi.h header file for this check. We should test this
 # bug with another header file than mpi.h ...
index ed1ad8b8861712bfcdfe6c51c85fc95af7ebceb4..e7f3c49529c8b1a3aee871cd944f4ef230567ddf 100644 (file)
@@ -85,12 +85,13 @@ CHECK_CXX_SOURCE_COMPILES(
   "
   HAVE_GLIBC_STACKTRACE)
 
+#
 # On Mac OS X, -rdynamic is accepted by the compiler (i.e.
 # it doesn't produce an error) but we always get a warning
 # that it isn't supported. That's pretty stupid because
 # we can't test for it. Consequently, only run the test
 # if not on OS X.
-
+#
 IF(HAVE_GLIBC_STACKTRACE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
 
   CHECK_CXX_COMPILER_FLAG(
@@ -395,10 +396,11 @@ ENDIF()
 # unpacked again when they are put into the shared libs, so
 # no savings there.
 #
-# TODO:
 # The flag also doesn't appear to be working on Cygwin, as
 # per email by John Fowkes on the mailing list in Feb 2012,
 # so don't run the test on cygwin.
 #
-ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS_DEBUG "-Wa,--compress-debug-sections")
-ENABLE_IF_SUPPORTED(CMAKE_C_FLAGS_DEBUG "-Wa,--compress-debug-sections")
+IF(NOT CMAKE_SYSTEM_NAME MATCHES "CYGWIN")
+  ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS_DEBUG "-Wa,--compress-debug-sections")
+  ENABLE_IF_SUPPORTED(CMAKE_C_FLAGS_DEBUG "-Wa,--compress-debug-sections")
+ENDIF()

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.