-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
55 lines (55 loc) · 1.85 KB
/
CMakePresets.json
File metadata and controls
55 lines (55 loc) · 1.85 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 25,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"hidden": true,
"cacheVariables": {
"CMAKE_C_STANDARD": "11",
"CMAKE_C_STANDARD_REQUIRED": true,
"CMAKE_C_EXTENSIONS": "OFF"
}
},
{
"name": "gcc",
"inherits": "default",
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_C_FLAGS_INIT": "-Wall -Wextra -pedantic -Wconversion -Wsign-conversion -Wdouble-promotion -Wswitch-default -Wswitch-enum -Wuninitialized -Wunused-variable -Wpacked -Wshadow -Waggregate-return -Wformat-security -Wlogical-not-parentheses -Wmissing-declarations -Wnull-dereference -Wduplicated-cond -Wno-padded -Wno-type-limits -Wno-float-equal -Wno-unused-command-line-argument -Wno-unknown-warning-option",
"CMAKE_C_FLAGS_DEBUG": "-O0 -g3 -DDEBUG=1",
"CMAKE_C_FLAGS_RELEASE": "-O3 -Werror",
"CMAKE_C_FLAGS_MINSIZEREL": "-Os -Werror"
}
},
{
"name": "clang",
"inherits": "default",
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_C_FLAGS_INIT": "-Weverything -Wno-unsafe-buffer-usage -Wno-unknown-warning-option",
"CMAKE_C_FLAGS_DEBUG": "-O0 -g3 -coverage -DDEBUG=1",
"CMAKE_C_FLAGS_RELEASE": "-O3 -Werror",
"CMAKE_C_FLAGS_MINSIZEREL": "-Os -Werror"
}
},
{
"name": "msvc",
"inherits": "default",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_C_COMPILER": "cl",
"CMAKE_C_FLAGS_INIT": "-Wall -Qspectre -wd5045 -wd4996 -wd4127 -wd4710 -wd4711",
"CMAKE_C_FLAGS_DEBUG": "-Od -DDEBUG=1",
"CMAKE_C_FLAGS_RELEASE": "-O2 -WX",
"CMAKE_C_FLAGS_MINSIZEREL": "-O1 -WX"
}
}
]
}