-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
41 lines (41 loc) · 1.21 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
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 5,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"environment": {
"CXX_FLAGS": "-Wall -Wextra -pedantic -Wall -Wextra -fms-extensions -pedantic -Wredundant-decls -Wstrict-overflow=5 -Wundef -Wnull-dereference -funsigned-char -fno-exceptions -Wno-gnu-case-range -Wno-sign-conversion -Wno-unused-parameter -Wno-gnu-anonymous-struct -Wno-nested-anon-types"
}
},
{
"name": "debug",
"displayName": "Debug",
"binaryDir": "${sourceDir}/build_debug",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_CXX_FLAGS_INIT": "$env{CXX_FLAGS}"
},
"inherits": ["base"]
},
{
"name": "release",
"displayName": "Release",
"binaryDir": "${sourceDir}/build_release",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS_INIT": "$env{CXX_FLAGS} -O3 -Wno-unused-parameter -Wunused-variable"
},
"inherits": ["base"]
}
]
}