-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakePresets.json
134 lines (134 loc) · 4.15 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
{
"version": 3,
"configurePresets": [
{
"name": "clang",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_COMPILER": {
"type": "STRING",
"value": "clang++"
}
}
},
{
"name": "gcc",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_COMPILER": {
"type": "STRING",
"value": "g++"
}
}
},
{
"name": "release",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Release"
},
"CMAKE_CXX_FLAGS_RELEASE": {
"type": "STRING",
"value": "-O3"
},
"CMAKE_C_FLAGS_RELEASE": {
"type": "STRING",
"value": "-O3"
}
}
},
{
"name": "fastest",
"hidden": true,
"inherits": "release",
"cacheVariables": {
"CMAKE_CXX_FLAGS": {
"type": "STRING",
"value": "-DNDEBUG -fno-math-errno"
},
"CMAKE_C_FLAGS": {
"type": "STRING",
"value": "-DNDEBUG -fno-math-errno"
}
}
},
{
"name": "og",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Debug"
},
"CMAKE_CXX_FLAGS": {
"type": "STRING",
"value": "-Og -fno-math-errno"
}
}
},
{
"name": "debug",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Debug"
},
"CMAKE_CXX_FLAGS": {
"type": "STRING",
"value": "-O0 -g"
}
}
},
{
"name": "gcc-release",
"description": "Production build enables -O3 with gcc and disables debugging",
"binaryDir": "${sourceDir}/build/gcc-release",
"inherits": [ "gcc", "release" ]
},
{
"name": "clang-release",
"description": "Production build enables -O3 with clang and disables debugging",
"binaryDir": "${sourceDir}/build/clang-release",
"inherits": [ "gcc", "release" ]
},
{
"name": "gcc-fastest",
"description": "Production build enables -O3 with gcc and disables debugging and verbose output",
"binaryDir": "${sourceDir}/build/gcc-fastest",
"inherits": [ "gcc", "fastest" ]
},
{
"name": "clang-fastest",
"description": "Production build enables -O3 with clang and disables debugging and verbose output",
"binaryDir": "${sourceDir}/build/clang-fastest",
"inherits": [ "clang", "fastest" ]
},
{
"name": "gcc-og",
"description": "Debug build enables -Og with gcc",
"binaryDir": "${sourceDir}/build/gcc-og",
"inherits": [ "gcc", "og" ]
},
{
"name": "clang-og",
"description": "Debug build enables -Og with clang",
"binaryDir": "${sourceDir}/build/clang-og",
"inherits": [ "clang", "og" ]
},
{
"name": "gcc-debug",
"description": "Full debug build with gcc",
"binaryDir": "${sourceDir}/build/gcc-debug",
"inherits": [ "gcc", "debug" ]
},
{
"name": "clang-debug",
"description": "Full debug build with clang",
"binaryDir": "${sourceDir}/build/clang-debug",
"inherits": [ "clang", "debug" ]
}
]
}