Skip to content

Commit 258b0d1

Browse files
committed
Update CMakePresets.json
Add Linux clang presets with ninja and make.
1 parent 7ef7b3f commit 258b0d1

1 file changed

Lines changed: 72 additions & 0 deletions

File tree

CMakePresets.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,25 @@
166166
"rhs": "Linux"
167167
}
168168
},
169+
{
170+
"name": "linux-clang-base",
171+
"hidden": true,
172+
"binaryDir": "${sourceDir}/build/${presetName}",
173+
"cacheVariables": {
174+
"CMAKE_CXX_COMPILER": "clang++",
175+
"BOOST_ROOT": "$env{BOOST}",
176+
"QL_BUILD_EXAMPLES": false,
177+
"QL_BUILD_TEST_SUITE": false,
178+
"QL_BUILD_BENCHMARK": false,
179+
"QL_ENABLE_SESSIONS": true,
180+
"ORE_BUILD_DOC": false
181+
},
182+
"condition": {
183+
"type": "equals",
184+
"lhs": "${hostSystemName}",
185+
"rhs": "Linux"
186+
}
187+
},
169188
{
170189
"name": "_release",
171190
"hidden": true,
@@ -192,6 +211,11 @@
192211
"hidden": true,
193212
"generator": "Ninja"
194213
},
214+
{
215+
"name": "_make",
216+
"hidden": true,
217+
"generator": "Unix Makefiles"
218+
},
195219
{
196220
"name": "linux-gcc-ninja-debug",
197221
"inherits": [
@@ -215,6 +239,54 @@
215239
"_ninja",
216240
"_relwithdebinfo"
217241
]
242+
},
243+
{
244+
"name": "linux-clang-debug",
245+
"inherits": [
246+
"linux-clang-base",
247+
"_make",
248+
"_debug"
249+
]
250+
},
251+
{
252+
"name": "linux-clang-release",
253+
"inherits": [
254+
"linux-clang-base",
255+
"_make",
256+
"_release"
257+
]
258+
},
259+
{
260+
"name": "linux-clang-relwithdebinfo",
261+
"inherits": [
262+
"linux-clang-base",
263+
"_make",
264+
"_relwithdebinfo"
265+
]
266+
},
267+
{
268+
"name": "linux-clang-ninja-debug",
269+
"inherits": [
270+
"linux-clang-base",
271+
"_ninja",
272+
"_debug"
273+
]
274+
},
275+
{
276+
"name": "linux-clang-ninja-release",
277+
"inherits": [
278+
"linux-clang-base",
279+
"_ninja",
280+
"_release"
281+
]
282+
},
283+
{
284+
"name": "linux-clang-ninja-relwithdebinfo",
285+
"inherits": [
286+
"linux-clang-base",
287+
"_ninja",
288+
"_relwithdebinfo"
289+
]
218290
}
219291
],
220292
"buildPresets": [

0 commit comments

Comments
 (0)