From 273c0c4a5c316f628e8e05dbc2a8296df6b36458 Mon Sep 17 00:00:00 2001 From: maier Date: Tue, 18 Sep 2012 18:49:19 +0000 Subject: [PATCH] A nicer summary git-svn-id: https://svn.dealii.org/branches/branch_cmake@26478 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/contrib/cmake/setup_finalize.cmake | 57 ++++++++++++++++------ 1 file changed, 42 insertions(+), 15 deletions(-) diff --git a/deal.II/contrib/cmake/setup_finalize.cmake b/deal.II/contrib/cmake/setup_finalize.cmake index 3301366a4b..0bdc71ca03 100644 --- a/deal.II/contrib/cmake/setup_finalize.cmake +++ b/deal.II/contrib/cmake/setup_finalize.cmake @@ -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 ") -- 2.39.5