-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
109 lines (109 loc) · 3.76 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "common-base",
"hidden": true,
"binaryDir": "${sourceDir}/build"
},
{
"name": "linux-base",
"inherits": "common-base",
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"cacheVariables": {
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [
"Linux"
]
}
}
},
{
"name": "linux",
"inherits": "linux-base",
"displayName": "Linux Default",
"description": "Default build settings for Linux using GCC & GDB in Debug mode",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wfatal-errors -Werror=vla -ggdb -fsanitize=address,undefined -fsanitize-recover=all",
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address,undefined -fsanitize-recover=all"
}
},
{
"name": "default",
"inherits": "linux",
"displayName": "OpenLab Default",
"description": "Default build settings for OpenLab"
},
{
"name": "linux-valgrind",
"inherits": "linux-base",
"displayName": "Linux Valgrind",
"description": "Default build for Linux but without sanitizers, so that valgrind can be used",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wfatal-errors -Werror=vla -ggdb"
}
},
{
"name": "default-valgrind",
"inherits": "linux-valgrind",
"displayName": "OpenLab Valgrind",
"description": "Default build settings for OpenLab with Valgrind"
},
{
"name": "macos-base",
"inherits": "common-base",
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [
"macOS"
]
}
}
},
{
"name": "macos",
"inherits": "macos-base",
"displayName": "MacOS Default",
"description": "Default build for MacOS using clang and lldb",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wfatal-errors -Werror=vla -glldb -fsanitize=address,undefined -fsanitize-recover=all",
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address,undefined -fsanitize-recover=all"
}
},
{
"name": "macos-valgrind",
"inherits": "macos-base",
"displayName": "MacOS Valgrind",
"description": "Default build for MacOS but without sanitizers, so that valgrind can be used",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wfatal-errors -Werror=vla -glldb"
}
}
]
}