]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
A nicer summary
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 18 Sep 2012 18:49:19 +0000 (18:49 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 18 Sep 2012 18:49:19 +0000 (18:49 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26478 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/cmake/setup_finalize.cmake

index 3301366a4b7b44288e7c0d712bc195483b5263ce..0bdc71ca03c33b820d73c64a379f3d07a8c2c0cb 100644 (file)
@@ -1,35 +1,49 @@
+#
+# Append the saved cache variable ${flags}_SAVED at the end of ${flags}
+#
 FOREACH(flags ${deal_ii_used_flags})
-  #
-  # Append the saved cache variable ${flags}_SAVED at the end of ${flags}
-  #
   SET(${flags} "${${flags}} ${${flags}_SAVED}")
 ENDFOREACH()
 
+#
+# And print out a nice configuration summary:
+#
 MESSAGE("
 
+*                                        *
+*    deal.II successfully configured!    *
+*                                        *
 
-deal.II successfully configured!
 
+    CMAKE_BUILD_TYPE:     ${CMAKE_BUILD_TYPE}
+    CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}
 
-Compiler Flags:
+General compiler flags (used by all build targets):
 
-Flags used by the compiler during all build types:
-
-    CMAKE_C_FLAGS:   ${CMAKE_C_FLAGS}
-    CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}
+    CMAKE_C_FLAGS:       ${CMAKE_C_FLAGS}
+    CMAKE_CXX_FLAGS:     ${CMAKE_CXX_FLAGS}
+")
 
-Additional flags used by the compiler during all release builds:
+IF(CMAKE_BUILD_TYPE MATCHES "Release")
+  MESSAGE("
+Additional compiler flags used for the Release target:
 
     CMAKE_C_FLAGS_RELEASE:   ${CMAKE_C_FLAGS_RELEASE}
     CMAKE_CXX_FLAGS_RELEASE: ${CMAKE_CXX_FLAGS_RELEASE}
+")
+ENDIF()
 
-Additional flags used by the compiler during all debug builds:
+IF(CMAKE_BUILD_TYPE MATCHES "Debug")
+  MESSAGE("
+Additional compiler flags used for the Debug target:
 
     CMAKE_C_FLAGS_DEBUG:   ${CMAKE_C_FLAGS_DEBUG}
     CMAKE_CXX_FLAGS_DEBUG: ${CMAKE_CXX_FLAGS_DEBUG}
+")
+ENDIF()
 
-(Note: Flags set with ccmake or the command line will be appended at the end
-of the default configuration)
+MESSAGE("
+(Note: Flags set with ccmake or the command line will be appended at the end of the default configuration)
 
 
 Configured Features:
@@ -38,11 +52,24 @@ Configured Features:
 GET_CMAKE_PROPERTY(res VARIABLES)
 FOREACH(var ${res})
   IF(var MATCHES "DEAL_II_WITH")
-    MESSAGE("    ${var} = ${${var}}")
+    IF(${${var}})
+      # FEATURE is enabled
+      STRING(REGEX REPLACE "^DEAL_II_WITH_" "" feature ${var})
+
+      IF(FEATURE_${feature}_EXTERNAL_CONFIGURED)
+        MESSAGE("      ${var} set up with external dependencies")
+      ENDIF()
+
+      IF(FEATURE_${feature}_CONTRIB_CONFIGURED)
+        MESSAGE("      ${var} set up with contrib packages")
+      ENDIF()
+    ELSE()
+      # FEATURE is disabled
+      MESSAGE("    ( ${var} = ${${var}} )")
+    ENDIF()
   ENDIF()
 ENDFOREACH()
 
 MESSAGE("
-TODO: Tell something about contrib/external
 
 ")

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.