forked from geodynamics/aspect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
write_config.cmake
59 lines (52 loc) · 1.76 KB
/
write_config.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# 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$
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}
# ASPECT_USE_PETSC: ${ASPECT_USE_PETSC}
# 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}\n")
ENDIF()
IF(DEAL_II_STATIC_EXECUTABLE)
_detailed(
"#
# LINKAGE: STATIC
")
ELSE()
_detailed(
"#
# LINKAGE: DYNAMIC
")
ENDIF()
_detailed("#\n###")