]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Bugfix: Print out the component selection as well
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 24 Mar 2013 11:04:13 +0000 (11:04 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 24 Mar 2013 11:04:13 +0000 (11:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@29012 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_finalize.cmake

index 7068004b079fc0281c6c6b2c820aa01ea898d1bf..70e035e5f1ab2692ef2460607fdaebffb5b90761 100644 (file)
@@ -118,6 +118,8 @@ GET_CMAKE_PROPERTY(_variables VARIABLES)
 FOREACH(_var ${_variables})
   IF(_var MATCHES "DEAL_II_WITH")
     LIST(APPEND _features "${_var}")
+  ELSEIF(_var MATCHES "DEAL_II_COMPONENT")
+    LIST(APPEND _components "${_var}")
   ELSEIF(_var MATCHES "(COMPILER|COMPILE_FLAGS|LINK_FLAGS|LIBRARIES|INCLUDE_PATH|INCLUDE_DIRS|LINKER_FLAGS)")
     LIST(APPEND _features_config ${_var})
   ENDIF()
@@ -164,7 +166,7 @@ ENDFOREACH()
 FILE(APPEND ${_log}
   "#\n#  Component configuration:\n"
   )
-FOREACH(_var ${_res})
+FOREACH(_var ${_components})
   IF(_var MATCHES "DEAL_II_COMPONENT")
     IF(${${_var}})
       FILE(APPEND ${_log} "#        ${_var}\n")

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.