-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakePresets.json
73 lines (73 loc) · 2.67 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
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"displayName": "Default Config",
"generator": "Ninja",
"hidden": true,
"binaryDir": "${sourceDir}/build"
},
{
"name": "default-win",
"inherits": "default",
"displayName": "MSVC defaults",
"hidden": true,
"cacheVariables": {
"CMAKE_EXE_LINKER_FLAGS_DEBUG": "/debug /INCREMENTAL:NO /DYNAMICBASE:NO /NXCOMPAT:NO",
"CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO": "/debug /INCREMENTAL:NO",
"CMAKE_MODULE_LINKER_FLAGS_DEBUG": "/debug /INCREMENTAL:NO /DYNAMICBASE:NO /NXCOMPAT:NO",
"CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO": "/debug /INCREMENTAL:NO",
"CMAKE_SHARED_LINKER_FLAGS_DEBUG": "/debug /INCREMENTAL:NO /DYNAMICBASE:NO /NXCOMPAT:NO",
"CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO": "/debug /INCREMENTAL:NO",
"CMAKE_C_FLAGS_DEBUG": "/MDd /Zi /Ob0 /Od",
"CMAKE_CXX_FLAGS_DEBUG": "/MDd /Zi /Ob0 /Od",
"CMAKE_CXX_FLAGS_RELEASE": "/MD /Zi /O2 /Ob2 /DNDEBUG",
"CMAKE_EXE_LINKER_FLAGS_RELEASE": "/debug:full /INCREMENTAL:NO",
"CMAKE_MODULE_LINKER_FLAGS_RELEASE": "/debug:full /INCREMENTAL:NO",
"CMAKE_SHARED_LINKER_FLAGS_RELEASE": "/debug:full /INCREMENTAL:NO"
}
},
{
"name": "cl",
"inherits": "default-win",
"displayName": "MSVC CL build",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "/DWIN32 /D_WINDOWS /GR /EHsc",
"BUSINESS_C_FLAGS": "/Zc:strictStrings;/W4;/wd4206;/wd4063;/wd4820;/wd4100;/wd4464;/wd4996;/wd4514"
}
},
{
"name": "default-unix",
"inherits": "default",
"hidden": true,
"displayName": "UNIX defaults",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Werror",
"CMAKE_CXX_FLAGS_DEBUG": "-g3 -Og -gsplit-dwarf",
"CMAKE_CXX_FLAGS_RELEASE": "-O3 -g3 -DNDEBUG"
}
},
{
"name": "gcc",
"inherits": "default-unix",
"displayName": "GCC build",
"environment": {
"CXX": "g++"
}
},
{
"name": "clang",
"inherits": "default-unix",
"displayName": "Clang build",
"environment": {
"CXX": "clang++"
}
}
]
}