[cig-commits] commit 2467 by heister to /var/svn/dealii/aspect

dealii.demon at gmail.com dealii.demon at gmail.com
Thu Apr 10 07:51:26 PDT 2014


Revision 2467

create a detailed.log with configuration information

U   trunk/aspect/CMakeLists.txt
A   trunk/aspect/write_config.cmake


http://www.dealii.org/websvn/revision.php?repname=Aspect+Repository&path=%2F&rev=2467&peg=2467

Diff:
Modified: trunk/aspect/CMakeLists.txt
===================================================================
--- trunk/aspect/CMakeLists.txt	2014-04-10 13:27:01 UTC (rev 2466)
+++ trunk/aspect/CMakeLists.txt	2014-04-10 14:51:22 UTC (rev 2467)
@@ -111,3 +111,10 @@
 
 DEAL_II_INVOKE_AUTOPILOT()
 
+MESSAGE(STATUS "writing config into detailed.log...")
+LIST(APPEND CMAKE_MODULE_PATH
+  ${CMAKE_SOURCE_DIR}
+  )
+
+INCLUDE(write_config)
+

Added: trunk/aspect/write_config.cmake
===================================================================
--- trunk/aspect/write_config.cmake	                        (rev 0)
+++ trunk/aspect/write_config.cmake	2014-04-10 14:51:22 UTC (rev 2467)
@@ -0,0 +1,58 @@
+# Copyright (C) 2013, 2014 by the authors of the ASPECT code.
+#
+# This file is part of ASPECT.
+#
+# ASPECT is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# ASPECT is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with ASPECT; see the file doc/COPYING.  If not see
+# <http://www.gnu.org/licenses/>.
+
+#  $Id: CMakeLists.txt 2387 2014-03-31 18:54:18Z bangerth $
+
+SET(_log_detailed "${CMAKE_BINARY_DIR}/detailed.log")
+FILE(REMOVE ${_log_detailed})
+
+MACRO(_detailed)
+  FILE(APPEND ${_log_detailed} "${ARGN}")
+ENDMACRO()
+
+_detailed(
+"###
+#
+#  ASPECT configuration:
+#        DEAL_II_DIR:            ${deal.II_DIR}
+#        DEAL_II VERSION:        ${DEAL_II_PACKAGE_VERSION}
+#        CMAKE_BUILD_TYPE:       ${CMAKE_BUILD_TYPE}
+#        CMAKE_INSTALL_PREFIX:   ${CMAKE_INSTALL_PREFIX}
+#        CMAKE_SOURCE_DIR:       ${CMAKE_SOURCE_DIR} 
+#        CMAKE_BINARY_DIR:       ${CMAKE_BINARY_DIR}
+#        CMAKE_CXX_COMPILER:     ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} on platform ${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_PROCESSOR}
+#                                ${CMAKE_CXX_COMPILER}
+")
+IF(CMAKE_C_COMPILER_WORKS)
+  _detailed("#        CMAKE_C_COMPILER:       ${CMAKE_C_COMPILER}
")
+ENDIF()
+
+
+IF(DEAL_II_STATIC_EXECUTABLE)
+_detailed(
+"#
+#        LINKAGE:                STATIC
+")
+ELSE()
+_detailed(
+"#
+#        LINKAGE:                DYNAMIC
+")
+ENDIF()
+
+_detailed("#
###")


More information about the CIG-COMMITS mailing list