-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakePresets.json
More file actions
651 lines (634 loc) · 17.7 KB
/
Copy pathCMakePresets.json
File metadata and controls
651 lines (634 loc) · 17.7 KB
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 28,
"patch": 0
},
"configurePresets": [
{
"name": "linux-base",
"hidden": true,
"description": "Base configuration for Linux builds (WSL or remote)",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"vendor": {
"microsoft.com/VisualStudioRemoteSettings/CMake/1.0": {
"sourceDir": "$env{HOME}/.vs/$ms{projectDirName}"
}
}
},
{
"name": "linux-gcc-base",
"inherits": "linux-base",
"hidden": true,
"displayName": "Linux GCC Base",
"description": "GCC compiler configuration",
"cacheVariables": {
"CMAKE_C_COMPILER": "/usr/bin/gcc",
"CMAKE_CXX_COMPILER": "/usr/bin/g++"
}
},
{
"name": "linux-gcc-debug",
"inherits": "linux-gcc-base",
"displayName": "Linux GCC Debug",
"description": "GCC Debug build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "linux-gcc-release",
"inherits": "linux-gcc-base",
"displayName": "Linux GCC Release",
"description": "GCC Release build with examples and tests",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"WISDOM_BUILD_TESTS": false
}
},
{
"name": "linux-gcc-debug-lib",
"inherits": "linux-gcc-base",
"displayName": "Linux GCC Lib (Debug)",
"description": "GCC library-only debug build for packaging",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"WISDOM_BUILD_EXAMPLES": false,
"WISDOM_BUILD_TESTS": false
}
},
{
"name": "linux-gcc-lib",
"inherits": "linux-gcc-base",
"displayName": "Linux GCC Lib (Release)",
"description": "GCC library-only release build for packaging",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"WISDOM_BUILD_EXAMPLES": false,
"WISDOM_BUILD_TESTS": false,
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": true
}
},
{
"name": "linux-gcc-docs",
"inherits": "linux-gcc-base",
"displayName": "Linux GCC Docs",
"description": "GCC build for documentation generation",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"WISDOM_BUILD_DOCS": true,
"WISDOM_BUILD_EXAMPLES": false,
"WISDOM_BUILD_TESTS": false
}
},
{
"name": "linux-clang-base",
"inherits": "linux-base",
"hidden": true,
"displayName": "Linux Clang Base",
"description": "Clang compiler configuration",
"cacheVariables": {
"CMAKE_C_COMPILER": "/usr/bin/clang",
"CMAKE_CXX_COMPILER": "/usr/bin/clang++"
}
},
{
"name": "linux-clang-debug",
"inherits": "linux-clang-base",
"displayName": "Linux Clang Debug",
"description": "Clang Debug build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "linux-clang-release",
"inherits": "linux-clang-base",
"displayName": "Linux Clang Release",
"description": "Clang Release build with examples and tests",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "linux-clang-lib",
"inherits": "linux-clang-base",
"displayName": "Linux Clang Lib (Release)",
"description": "Clang library-only release build for packaging",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"WISDOM_BUILD_EXAMPLES": false,
"WISDOM_BUILD_TESTS": false,
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": true
}
},
{
"name": "windows-base",
"hidden": true,
"description": "Base configuration for Windows builds",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "win-msvc-base",
"inherits": "windows-base",
"hidden": true,
"displayName": "Windows MSVC Base",
"description": "MSVC compiler configuration",
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe"
},
"architecture": {
"value": "x64",
"strategy": "external"
}
},
{
"name": "win-msvc-debug",
"inherits": "win-msvc-base",
"displayName": "Windows MSVC Debug",
"description": "MSVC Debug build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "win-msvc-release",
"inherits": "win-msvc-base",
"displayName": "Windows MSVC Release",
"description": "MSVC Release build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"WISDOM_BUILD_TESTS": false
}
},
{
"name": "win-msvc-lib",
"inherits": "win-msvc-base",
"displayName": "Windows MSVC Lib (Release)",
"description": "MSVC library-only release build",
"binaryDir": "${sourceDir}/build/msvc-release",
"installDir": "${sourceDir}/install/msvc-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"WISDOM_BUILD_EXAMPLES": false,
"WISDOM_BUILD_TESTS": false,
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": true
}
},
{
"name": "win-msvc-debug-lib",
"inherits": "win-msvc-base",
"displayName": "Windows MSVC Lib (Debug)",
"description": "MSVC library-only debug build",
"binaryDir": "${sourceDir}/build/msvc-debug",
"installDir": "${sourceDir}/install/msvc-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"WISDOM_BUILD_EXAMPLES": false,
"WISDOM_BUILD_TESTS": false
}
},
{
"name": "win-msvc-docs",
"inherits": "win-msvc-base",
"displayName": "Windows MSVC Docs",
"description": "MSVC build for documentation generation",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"WISDOM_BUILD_DOCS": true,
"WISDOM_BUILD_EXAMPLES": false,
"WISDOM_BUILD_TESTS": false
}
},
{
"name": "win-clang-base",
"inherits": "windows-base",
"hidden": true,
"displayName": "Windows Clang Base",
"description": "Clang compiler configuration",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang.exe",
"CMAKE_CXX_COMPILER": "clang++.exe"
},
"architecture": {
"value": "x64",
"strategy": "external"
}
},
{
"name": "win-clang-debug",
"inherits": "win-clang-base",
"displayName": "Windows Clang Debug",
"description": "Clang Debug build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "win-clang-release",
"inherits": "win-clang-base",
"displayName": "Windows Clang Release",
"description": "Clang Release build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"WISDOM_BUILD_TESTS": false
}
},
{
"name": "win-clang-lib",
"inherits": "win-clang-base",
"displayName": "Windows Clang Lib (Release)",
"description": "Clang library-only release build",
"binaryDir": "${sourceDir}/build/clang-release",
"installDir": "${sourceDir}/install/clang-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"WISDOM_BUILD_EXAMPLES": false,
"WISDOM_BUILD_TESTS": false,
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": true
}
},
{
"name": "win-clang-debug-lib",
"inherits": "win-clang-base",
"displayName": "Windows Clang Lib (Debug)",
"description": "Clang library-only debug build",
"binaryDir": "${sourceDir}/build/clang-debug",
"installDir": "${sourceDir}/install/clang-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"WISDOM_BUILD_EXAMPLES": false,
"WISDOM_BUILD_TESTS": false
}
},
{
"name": "win-clangcl-base",
"inherits": "windows-base",
"hidden": true,
"displayName": "Windows Clang-CL Base",
"description": "Clang-CL (Clang with MSVC compatibility) configuration",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-cl.exe",
"CMAKE_CXX_COMPILER": "clang-cl.exe"
},
"architecture": {
"value": "x64",
"strategy": "external"
}
},
{
"name": "win-clangcl-debug",
"inherits": "win-clangcl-base",
"displayName": "Windows Clang-CL Debug",
"description": "Clang-CL Debug build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "win-clangcl-release",
"inherits": "win-clangcl-base",
"displayName": "Windows Clang-CL Release",
"description": "Clang-CL Release build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "win-clangcl-lib",
"inherits": "win-clangcl-base",
"displayName": "Windows Clang-CL Lib (Release)",
"description": "Clang-CL library-only release build",
"binaryDir": "${sourceDir}/build/clangcl-release",
"installDir": "${sourceDir}/install/clangcl-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"WISDOM_BUILD_EXAMPLES": false,
"WISDOM_BUILD_TESTS": false,
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": true
}
},
{
"name": "win-mingw-base",
"inherits": "windows-base",
"hidden": true,
"displayName": "Windows MinGW Base",
"description": "MinGW-w64 GCC compiler configuration",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc.exe",
"CMAKE_CXX_COMPILER": "g++.exe"
}
},
{
"name": "win-mingw-debug",
"inherits": "win-mingw-base",
"displayName": "Windows MinGW Debug",
"description": "MinGW Debug build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "win-mingw-release",
"inherits": "win-mingw-base",
"displayName": "Windows MinGW Release",
"description": "MinGW Release build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "win-mingw-lib",
"inherits": "win-mingw-base",
"displayName": "Windows MinGW Lib (Release)",
"description": "MinGW library-only release build",
"binaryDir": "${sourceDir}/build/mingw-release",
"installDir": "${sourceDir}/install/mingw-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"WISDOM_BUILD_EXAMPLES": false,
"WISDOM_BUILD_TESTS": false,
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": true
}
},
{
"name": "x64-vs",
"displayName": "x64 Visual Studio",
"description": "Visual Studio generator for IDE development",
"generator": "Visual Studio 17 2022",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_BUILD_TYPE": "Debug"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "macos-base",
"hidden": true,
"displayName": "macOS Base",
"description": "Base configuration for macOS builds",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"vendor": {
"microsoft.com/VisualStudioRemoteSettings/CMake/1.0": {
"sourceDir": "$env{HOME}/.vs/$ms{projectDirName}"
}
}
},
{
"name": "macos-debug",
"inherits": "macos-base",
"displayName": "macOS Debug",
"description": "macOS Debug build with default compiler",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "macos-release",
"inherits": "macos-base",
"displayName": "macOS Release",
"description": "macOS Release build with default compiler",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "macos-lib-release",
"inherits": "macos-base",
"displayName": "macOS Lib (Release)",
"description": "macOS library-only release build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"WISDOM_BUILD_EXAMPLES": false,
"WISDOM_BUILD_TESTS": false,
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": true
}
},
{
"name": "macos-docs",
"inherits": "macos-base",
"displayName": "macOS Docs",
"description": "macOS build for documentation generation",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"WISDOM_BUILD_DOCS": true,
"WISDOM_BUILD_EXAMPLES": false,
"WISDOM_BUILD_TESTS": false
}
}
],
"buildPresets": [
{
"name": "linux-gcc-debug",
"displayName": "Linux GCC Debug",
"configurePreset": "linux-gcc-debug",
"jobs": 16
},
{
"name": "linux-gcc-release",
"displayName": "Linux GCC Release",
"configurePreset": "linux-gcc-release",
"jobs": 16
},
{
"name": "linux-gcc-debug-lib",
"displayName": "Linux GCC Lib (Debug)",
"configurePreset": "linux-gcc-debug-lib",
"jobs": 16
},
{
"name": "linux-gcc-lib",
"displayName": "Linux GCC Lib",
"configurePreset": "linux-gcc-lib",
"jobs": 16
},
{
"name": "linux-gcc-docs",
"displayName": "Linux GCC Docs",
"configurePreset": "linux-gcc-docs",
"targets": ["doc_doxygen"],
"jobs": 16
},
{
"name": "linux-clang-debug",
"displayName": "Linux Clang Debug",
"configurePreset": "linux-clang-debug",
"jobs": 16
},
{
"name": "linux-clang-release",
"displayName": "Linux Clang Release",
"configurePreset": "linux-clang-release",
"jobs": 16
},
{
"name": "linux-clang-lib",
"displayName": "Linux Clang Lib",
"configurePreset": "linux-clang-lib",
"jobs": 16
},
{
"name": "win-msvc-debug",
"displayName": "Windows MSVC Debug",
"configurePreset": "win-msvc-debug",
"jobs": 16
},
{
"name": "win-msvc-release",
"displayName": "Windows MSVC Release",
"configurePreset": "win-msvc-release",
"jobs": 16
},
{
"name": "win-msvc-lib",
"displayName": "Windows MSVC Lib",
"configurePreset": "win-msvc-lib",
"jobs": 16
},
{
"name": "win-msvc-docs",
"displayName": "Windows MSVC Docs",
"configurePreset": "win-msvc-docs",
"targets": ["doc_doxygen"],
"jobs": 16
},
{
"name": "win-clang-debug",
"displayName": "Windows Clang Debug",
"configurePreset": "win-clang-debug",
"jobs": 16
},
{
"name": "win-clang-release",
"displayName": "Windows Clang Release",
"configurePreset": "win-clang-release",
"jobs": 16
},
{
"name": "win-clang-lib",
"displayName": "Windows Clang Lib",
"configurePreset": "win-clang-lib",
"jobs": 16
},
{
"name": "win-clangcl-debug",
"displayName": "Windows Clang-CL Debug",
"configurePreset": "win-clangcl-debug",
"jobs": 16
},
{
"name": "win-clangcl-release",
"displayName": "Windows Clang-CL Release",
"configurePreset": "win-clangcl-release",
"jobs": 16
},
{
"name": "win-clangcl-lib",
"displayName": "Windows Clang-CL Lib",
"configurePreset": "win-clangcl-lib",
"jobs": 16
},
{
"name": "win-mingw-debug",
"displayName": "Windows MinGW Debug",
"configurePreset": "win-mingw-debug",
"jobs": 16
},
{
"name": "win-mingw-release",
"displayName": "Windows MinGW Release",
"configurePreset": "win-mingw-release",
"jobs": 16
},
{
"name": "win-mingw-lib",
"displayName": "Windows MinGW Lib",
"configurePreset": "win-mingw-lib",
"jobs": 16
},
{
"name": "macos-debug",
"displayName": "macOS Debug",
"configurePreset": "macos-debug",
"jobs": 16
},
{
"name": "macos-release",
"displayName": "macOS Release",
"configurePreset": "macos-release",
"jobs": 16
},
{
"name": "macos-lib",
"displayName": "macOS Lib",
"configurePreset": "macos-lib-release",
"jobs": 16
},
{
"name": "macos-docs",
"displayName": "macOS Docs",
"configurePreset": "macos-docs",
"targets": ["doc_doxygen"],
"jobs": 16
}
],
"testPresets": [
{
"name": "linux-gcc-debug",
"configurePreset": "linux-gcc-debug",
"output": { "outputOnFailure": true }
},
{
"name": "linux-clang-debug",
"configurePreset": "linux-clang-debug",
"output": { "outputOnFailure": true }
},
{
"name": "win-msvc-debug",
"configurePreset": "win-msvc-debug",
"output": { "outputOnFailure": true }
},
{
"name": "win-clang-debug",
"configurePreset": "win-clang-debug",
"output": { "outputOnFailure": true }
},
{
"name": "macos-debug",
"configurePreset": "macos-debug",
"output": { "outputOnFailure": true }
}
]
}