-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
153 lines (153 loc) · 4.7 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 19,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "vcpkg/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "x64",
"hidden": true,
"architecture": {
"value": "x64",
"strategy": "external"
}
},
{
"name": "msvc",
"hidden": true,
"cacheVariables": {
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl",
"CMAKE_C_FLAGS": "/FC /external:I ${sourceDir}/thirdparty /external:env:INCLUDE /external:W0 /utf-8 /sdl",
"CMAKE_CXX_FLAGS": "/FC /external:I ${sourceDir}/thirdparty /external:env:INCLUDE /external:W0 /utf-8 /sdl /EHsc /permissive- /Zc:preprocessor /Zc:inline /Zc:externConstexpr /Zc:__cplusplus",
"CMAKE_C_FLAGS_DEBUG": "/RTC1 /Od /Zi /MDd",
"CMAKE_CXX_FLAGS_DEBUG": "/RTC1 /Od /Zi /MDd",
"CMAKE_C_FLAGS_RELEASE": "/O2 /Ob2 /MD",
"CMAKE_CXX_FLAGS_RELEASE": "/O2 /Ob2 /MD"
}
},
{
"name": "msvc-asan",
"hidden": true,
"cacheVariables": {
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl",
"CMAKE_C_FLAGS": "-fsanitize=address /FC /external:I ${sourceDir}/thirdparty /external:env:INCLUDE /external:W0 /utf-8 /sdl",
"CMAKE_CXX_FLAGS": "-fsanitize=address /FC /external:I ${sourceDir}/thirdparty /external:env:INCLUDE /external:W0 /utf-8 /sdl /EHsc /permissive- /Zc:preprocessor /Zc:inline /Zc:externConstexpr /Zc:__cplusplus",
"CMAKE_C_FLAGS_DEBUG": "/RTC1 /Od /Zi /MDd",
"CMAKE_CXX_FLAGS_DEBUG": "/RTC1 /Od /Zi /MDd",
"CMAKE_C_FLAGS_RELEASE": "/O2 /Ob2 /MD",
"CMAKE_CXX_FLAGS_RELEASE": "/O2 /Ob2 /MD",
"CMAKE_CXX_EXTENSIONS": "OFF"
}
},
{
"name": "clang",
"hidden": true,
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang",
"CMAKE_C_FLAGS": "-m64 -fdiagnostics-absolute-paths",
"CMAKE_CXX_FLAGS": "-m64 -fdiagnostics-absolute-paths",
"CMAKE_C_FLAGS_DEBUG": "-O0 -g",
"CMAKE_CXX_FLAGS_DEBUG": "-O0 -g",
"CMAKE_C_FLAGS_RELEASE": "-O2 -s",
"CMAKE_CXX_FLAGS_RELEASE": "-O2 -s"
}
},
{
"name": "clang-asan",
"hidden": true,
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang",
"CMAKE_C_FLAGS": "-m64 -fdiagnostics-absolute-paths -fsanitize=address",
"CMAKE_CXX_FLAGS": "-m64 -fdiagnostics-absolute-paths -fsanitize=address",
"CMAKE_C_FLAGS_DEBUG": "-O0 -g",
"CMAKE_CXX_FLAGS_DEBUG": "-O0 -g",
"CMAKE_C_FLAGS_RELEASE": "-O2 -s",
"CMAKE_CXX_FLAGS_RELEASE": "-O2 -s"
}
},
{
"name": "windows",
"hidden": true,
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [ "Windows" ]
}
}
},
{
"name": "debug",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "x64-windows-msvc-debug",
"inherits": [ "base", "x64", "windows", "msvc", "debug" ]
},
{
"name": "x64-windows-msvc-release",
"inherits": [ "base", "x64", "windows", "msvc", "release" ]
},
{
"name": "x64-windows-msvc-asan",
"inherits": [ "base", "x64", "windows", "msvc-asan", "debug" ]
},
{
"name": "x64-windows-clang-asan",
"inherits": [ "base", "x64", "windows", "clang-asan", "debug" ]
},
{
"name": "x64-windows-clang-debug",
"inherits": [ "base", "x64", "windows", "clang", "debug" ]
},
{
"name": "x64-windows-clang-release",
"inherits": [ "base", "x64", "windows", "clang", "release" ]
}
],
"buildPresets": [
{
"name": "x64-windows-msvc-debug",
"configurePreset": "x64-windows-msvc-debug"
},
{
"name": "x64-windows-msvc-release",
"configurePreset": "x64-windows-msvc-release"
},
{
"name": "x64-windows-msvc-asan",
"configurePreset": "x64-windows-msvc-asan"
},
{
"name": "x64-windows-clang-debug",
"configurePreset": "x64-windows-clang-debug"
},
{
"name": "x64-windows-clang-release",
"configurePreset": "x64-windows-clang-release"
}
]
}