-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
103 lines (103 loc) · 2.72 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
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "cmake-pedantic",
"hidden": true,
"warnings": {
"dev": true,
"deprecated": true,
"uninitialized": true,
"unusedCli": true,
"systemVars": false
},
"errors": {
"dev": true,
"deprecated": true
}
},
{
"name": "dev-mode",
"hidden": true,
"inherits": "cmake-pedantic",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "flags-unix",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wcast-qual -Wformat=2 -Wundef -Werror=float-equal -Wshadow -Wcast-align -Wunused -Wnull-dereference -Wdouble-promotion -Wimplicit-fallthrough -Wextra-semi -Woverloaded-virtual -Wnon-virtual-dtor -Wold-style-cast -Weffc++ $env{CXXFLAGS}"
}
},
{
"name": "unix",
"generator": "Unix Makefiles",
"hidden": true,
"inherits": [
"flags-unix"
]
},
{
"name": "debug",
"binaryDir": "${sourceDir}/build/debug",
"inherits": [
"unix",
"dev-mode"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS_DEBUG": "-O0 -g -ggdb3 -DDEBUG -DDEBUG_STDLIB=1"
}
},
{
"name": "sanitize",
"binaryDir": "${sourceDir}/build/sanitize",
"inherits": [
"unix",
"dev-mode"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS_DEBUG": "-O2 -g -fsanitize=address,undefined -fno-omit-frame-pointer -fno-common -DDEBUG -DDEBUG_STDLIB=0 -DGAMBA_SANITIZE"
}
},
{
"name": "optimize",
"binaryDir": "${sourceDir}/build/optimize",
"inherits": [
"unix",
"dev-mode"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "ReleaseDebug",
"CMAKE_CXX_FLAGS_RELEASEDEBUG": "-O3 -DNDEBUG -funroll-loops $env{CXX_PGO_FLAGS}"
}
},
{
"name": "profile",
"binaryDir": "${sourceDir}/build/profile",
"inherits": "unix",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "ReleaseDebug",
"CMAKE_CXX_FLAGS_RELEASEDEBUG": "-O3 -DNDEBUG -funroll-loops -DPROFILE -g"
}
},
{
"name": "release",
"binaryDir": "${sourceDir}/build/release",
"inherits": "unix",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS_RELEASE": "-O3 -DNDEBUG -funroll-loops -DGAMBA_RELEASE $env{CXX_PGO_FLAGS}",
"CMAKE_EXE_LINKER_FLAGS_RELEASE": "-static-libstdc++ -s"
}
}
]
}