-
Notifications
You must be signed in to change notification settings - Fork 29
/
CMakePresets.json
205 lines (205 loc) · 5.88 KB
/
CMakePresets.json
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
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "base-default",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "1",
"CMAKE_INSTALL_PREFIX": "$env{HOME}/arts_install",
"CMAKE_PREFIX_PATH": "$env{CONDA_PREFIX}",
"ENABLE_ARTS_LGPL": "0",
"ENABLE_FORTRAN": "1",
"ENABLE_NETCDF": "1",
"ENABLE_PCH": "0",
"FASTWIGNER": "0",
"NO_FASTEM": "0",
"NO_OPENMP": "0",
"NO_RT4": "0",
"NO_TMATRIX": "0",
"SPHINX_JOBS": "4",
"TEST_JOBS": "4"
}
},
{
"name": "default-gcc-conda",
"inherits": "base-default",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "$env{CONDA_PREFIX}/bin/g++",
"CMAKE_C_COMPILER": "$env{CONDA_PREFIX}/bin/gcc",
"CMAKE_Fortran_COMPILER": "$env{CONDA_PREFIX}/bin/gfortran",
"CMAKE_C_FLAGS": "-isystem $env{CONDA_PREFIX}/include",
"CMAKE_CXX_FLAGS": "-isystem $env{CONDA_PREFIX}/include",
"CMAKE_Fortran_FLAGS": "-isystem $env{CONDA_PREFIX}/include"
},
"environment": {
"LDFLAGS": "-L$env{CONDA_PREFIX}/lib -Wl,-rpath,$env{CONDA_PREFIX}/lib"
}
},
{
"name": "default-msvc-conda",
"inherits": "base-default",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "$env{USERPROFILE}/arts_install",
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"ENABLE_FORTRAN": "0",
"NO_OPENMP": "1"
},
"environment": {
"CPPFLAGS": "$env{CFLAGS}",
"CXXFLAGS": "$env{CFLAGS}",
"FFLAGS": "$env{CFLAGS}",
"LDFLAGS": "-L$env{CONDA_PREFIX}/lib -Wl,-rpath,$env{CONDA_PREFIX}/lib"
}
},
{
"name": "default-clang-conda",
"inherits": "default-gcc-conda",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "$env{CONDA_PREFIX}/bin/clang++",
"CMAKE_C_COMPILER": "$env{CONDA_PREFIX}/bin/clang",
"CMAKE_Fortran_COMPILER": "$env{CONDA_PREFIX}/bin/gfortran"
}
},
{
"name": "relnondebug-gcc-conda",
"inherits": "default-gcc-conda",
"cacheVariables": {
"NO_NDEBUG": "1"
}
},
{
"name": "debug-gcc-conda",
"inherits": "default-gcc-conda",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "debug-clang-conda",
"inherits": "default-clang-conda",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "reldeb-gcc-conda",
"inherits": "default-gcc-conda",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "reldeb-clang-conda",
"inherits": "default-clang-conda",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "nofortran-gcc-conda",
"inherits": "default-gcc-conda",
"cacheVariables": {
"ENABLE_FORTRAN": "0"
}
},
{
"name": "lgpl-gcc-conda",
"inherits": "default-gcc-conda",
"cacheVariables": {
"ENABLE_ARTS_LGPL": "1",
"NO_FASTEM": "1",
"NO_RT4": "1",
"NO_TMATRIX": "1"
}
},
{
"name": "lgpl-clang-conda",
"inherits": "default-clang-conda",
"cacheVariables": {
"ENABLE_ARTS_LGPL": "1",
"NO_FASTEM": "1",
"NO_RT4": "1",
"NO_TMATRIX": "1"
}
},
{
"name": "macintel-clang-conda",
"inherits": "default-clang-conda",
"cacheVariables": {
"CMAKE_OSX_DEPLOYMENT_TARGET": "13.3"
}
},
{
"name": "mac-gcc13-hb-conda",
"inherits": "default-gcc-conda",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc-13",
"CMAKE_CXX_COMPILER": "g++-13",
"CMAKE_Fortran_COMPILER": "gfortran-13"
}
},
{
"name": "macm1-clang-hb-conda",
"inherits": "default-gcc-conda",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "/opt/homebrew/opt/llvm/bin/clang++",
"CMAKE_C_COMPILER": "/opt/homebrew/opt/llvm/bin/clang",
"CMAKE_Fortran_COMPILER": "gfortran-13"
}
},
{
"name": "macintel-clang-hb-conda",
"inherits": "default-gcc-conda",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "/usr/local/opt/llvm/bin/clang++",
"CMAKE_C_COMPILER": "/usr/local/opt/llvm/bin/clang",
"CMAKE_Fortran_COMPILER": "gfortran-13"
}
},
{
"name": "perf-gcc-conda",
"inherits": "default-gcc-conda",
"cacheVariables": {
"CMAKE_C_FLAGS": "-isystem $env{CONDA_PREFIX}/include -fno-omit-frame-pointer",
"CMAKE_CXX_FLAGS": "-isystem $env{CONDA_PREFIX}/include -fno-omit-frame-pointer"
}
},
{
"name": "levante-gcc-conda",
"inherits": "base-default",
"cacheVariables": {
"CMAKE_C_COMPILER": "/sw/spack-levante/gcc-11.2.0-bcn7mb/bin/gcc",
"CMAKE_CXX_COMPILER": "/sw/spack-levante/gcc-11.2.0-bcn7mb/bin/g++",
"CMAKE_Fortran_COMPILER": "/sw/spack-levante/gcc-11.2.0-bcn7mb/bin/gfortran",
"CMAKE_PREFIX_PATH": "",
"BLAS_blas_LIBRARY": "/sw/spack-levante/openblas-0.3.18-mzclcq/lib/libopenblas.so"
}
},
{
"name": "mac-gcc14-hb-conda",
"inherits": "default-gcc-conda",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc-14",
"CMAKE_CXX_COMPILER": "g++-14",
"CMAKE_Fortran_COMPILER": "gfortran-14"
}
},
{
"name": "asan-clang-conda",
"inherits": "debug-clang-conda",
"cacheVariables": {
"CMAKE_C_FLAGS": "-isystem $env{CONDA_PREFIX}/include -fsanitize=address -fno-omit-frame-pointer",
"CMAKE_CXX_FLAGS": "-isystem $env{CONDA_PREFIX}/include -fsanitize=address -fno-omit-frame-pointer"
}
}
]
}