-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.h.cmake
222 lines (171 loc) · 4.97 KB
/
config.h.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
// This file is part of the dune-xt project:
// https://zivgitlab.uni-muenster.de/ag-ohlberger/dune-community/dune-xt
// Copyright 2009-2021 dune-xt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensource.org/licenses/gpl-license)
// with "runtime exception" (http://www.dune-project.org/license.html)
// Authors:
// Felix Schindler (2013 - 2018, 2020)
// René Fritze (2013 - 2020)
// Tobias Leibner (2014, 2016 - 2021)
/* begin dune-xt */
// NEVER delete/alter above comment, dune's cmake relies on it
// this precludes clang-tidy and co. from issuing warnings for this file
#pragma GCC system_header
/* Define to the version of dune-xt */
#define DUNE_XT_VERSION ${DUNE_XT_VERSION}
/* Define to the major version of dune-xt */
#define DUNE_XT_VERSION_MAJOR ${DUNE_XT_VERSION_MAJOR}
/* Define to the minor version of dune-xt */
#define DUNE_XT_VERSION_MINOR ${DUNE_XT_VERSION_MINOR}
/* Define to the revision of dune-xt */
#define DUNE_XT_VERSION_REVISION ${DUNE_XT_VERSION_REVISION}
#ifndef HAVE_CBLAS
#cmakedefine01 HAVE_CBLAS
#endif
#ifndef HAVE_EIGEN
#define HAVE_EIGEN ENABLE_EIGEN
#endif
#ifndef HAVE_CLP
#cmakedefine01 HAVE_CLP
#endif
#ifndef HAVE_QHULL
#cmakedefine01 HAVE_QHULL
#endif
#ifndef HAVE_LPSOLVE
#cmakedefine01 HAVE_LPSOLVE
#endif
#ifndef HAVE_LAPACKE
#cmakedefine01 HAVE_LAPACKE
#endif
#ifndef HAVE_MKL
#cmakedefine01 HAVE_MKL
#endif
#ifndef HAVE_MATEXP
#cmakedefine01 HAVE_MATEXP
#endif
#ifndef HAVE_TBB
#cmakedefine01 HAVE_TBB
#endif
#ifndef DXT_DISABLE_LARGE_TESTS
#define DXT_DISABLE_LARGE_TESTS 0
#endif
#ifndef HAVE_LIKWID
#cmakedefine01 HAVE_LIKWID
#endif
#ifndef ENABLE_PERFMON
#cmakedefine01 ENABLE_PERFMON
#endif
#if ENABLE_PERFMON && HAVE_LIKWID
#define LIKWID_PERFMON 1
#endif
#cmakedefine01 HAVE_MAP_EMPLACE
#cmakedefine01 HAS_WORKING_UNUSED_ATTRIBUTE
#ifndef DS_MAX_MIC_THREADS
#define DS_MAX_MIC_THREADS ${DS_MAX_MIC_THREADS}
#endif
#ifndef HAVE_DUNE_FEM_PARAMETER_REPLACE
#define HAVE_DUNE_FEM_PARAMETER_REPLACE 0
#endif
#cmakedefine01 HAVE_SPE10_DATA
#define SPE10_MODEL1_FILENAME "${SPE10_MODEL1_FILENAME}"
#define SPE10_MODEL2_FILENAME "${SPE10_MODEL2_FILENAME}"
/* needed in dune/xt/common/profiler.hh */
#ifndef DUNE_XT_DO_TIMING
#define DUNE_XT_DO_TIMING 0
#endif
#cmakedefine01 DUNE_XT_WITH_PYTHON_BINDINGS
/*** Silence implicitly False evaluation of undefined macro warnings ****/
#ifndef HAVE_DUNE_FEM
#define HAVE_DUNE_FEM 0
#endif
#ifndef HAVE_DUNE_GRID_MULTISCALE
#define HAVE_DUNE_GRID_MULTISCALE 0
#endif
#ifndef HAVE_DUNE_GRID_GLUE
#define HAVE_DUNE_GRID_GLUE 0
#endif
#ifndef ENABLE_ALBERTA
#define ENABLE_ALBERTA 0
#endif
#ifndef HAVE_ALBERTA
#define HAVE_ALBERTA 0
#endif
#ifndef ALBERTA_DIM
#define ALBERTA_DIM 2
#endif
#ifndef HAVE_DUNE_SPGRID
#define HAVE_DUNE_SPGRID 0
#endif
#ifndef HAVE_EMPLACE
#define HAVE_EMPLACE 0
#endif
#ifndef HAVE_FASP
#define HAVE_FASP 0
#endif
#ifndef ENABLE_SUPERLU
#define ENABLE_SUPERLU 0
#endif
#ifndef HAVE_SUPERLU
#define HAVE_SUPERLU 0
#endif
#ifndef ENABLE_UMFPACK
#define ENABLE_UMFPACK 0
#endif
#ifndef HAVE_UMFPACK
#define HAVE_UMFPACK 0
#endif
#ifndef HAVE_UG
#define HAVE_UG 0
#endif
#ifndef ENABLE_BOOST
#define ENABLE_BOOST 0
#endif
#ifndef ENABLE_PETSC
#define ENABLE_PETSC 0
#endif
#ifndef ENABLE_MPI
#define ENABLE_MPI 0
#endif
#ifndef HAVE_MPI
#define HAVE_MPI 0
#endif
#ifndef HAVE_CONSTEXPR
#define HAVE_CONSTEXPR 0
#endif
#ifndef HAVE_PETSC
#define HAVE_PETSC 0
#endif
#ifndef DUNE_FEM_COMPATIBILITY
#define DUNE_FEM_COMPATIBILITY 0
#endif
/*** End: Silence implicitly False evaluation of undefined macro warnings ****/
#include <boost/config.hpp>
#if HAVE_TBB && defined(BOOST_CLANG)
// Hack to fix compilation with clang as tbb does not detect C++11 feature correctly for clang. Recent versions of TBB
// allow to set the macro TBB_USE_GLIBCXX_VERSION to the proper version of libstdc++ to fix this issue, see
// https://www.threadingbuildingblocks.org/docs/help/reference/appendices/known_issues/linux_os.html. For older versions
// we need the hack below.
#define TBB_USE_GLIBCXX_VERSION 40902
// new versions of tbb do not have tbb_stddef.h anymore
#if __has_include("tbb/version.h")
# include "tbb/version.h"
#else
# include "tbb/tbb_stddef.h"
#endif
#if TBB_INTERFACE_VERSION < 4400
#include <tbb/tbb_config.h>
#undef __TBB_CPP11_RVALUE_REF_PRESENT
#undef __TBB_CPP11_VARIADIC_TEMPLATES_PRESENT
#undef __TBB_CPP11_DECLTYPE_PRESENT
#undef __TBB_CPP11_LAMBDAS_PRESENT
#define __TBB_CPP11_RVALUE_REF_PRESENT 1
#define __TBB_CPP11_VARIADIC_TEMPLATES_PRESENT 1
#define __TBB_CPP11_DECLTYPE_PRESENT 1
#define __TBB_CPP11_LAMBDAS_PRESENT 1
#endif // TBB_INTERFACE_VERSION < 4400
#endif // HAVE_TBB
// This is an unfortunate hack, see the header for an explanation.
#include <dune/xt/common/fix-ambiguous-std-math-overloads.hh>
/* end dune-xt */
// NEVER delete/alter above comment, dune's cmake relies on it