-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
59 lines (59 loc) · 2.19 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 27,
"patch": 0
},
// TODO: consider adding `-mavx2` for AVX2 support
"configurePresets": [
{
"name": "ux-debug",
"displayName": "Unix Makefiles Debug",
"description": "Debug build using Unix Makefiles",
"hidden": false,
"binaryDir": "${sourceDir}/build", // clangd LSP requires no presetName
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_CXX_STANDARD_REQUIRED": true,
"CMAKE_CXX_STANDARD": "20",
"CMAKE_CXX_FLAGS": "-pthread -g -O0 -Wall -Wextra -Wpedantic -DDEBUG -Wno-c11-extensions",
"CMAKE_EXE_LINKER_FLAGS": "-g"
}
},
{
"name": "ux-release",
"displayName": "Unix Makefiles Release",
"description": "Release build using Unix Makefiles",
"hidden": false,
"binaryDir": "${sourceDir}/build", // clangd LSP requires no presetName
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_CXX_STANDARD_REQUIRED": true,
"CMAKE_CXX_STANDARD": "20",
"CMAKE_CXX_FLAGS": "-pthread -O3 -DNDEBUG -Wall -Wextra -Wpedantic -Wno-c11-extensions",
"CMAKE_EXE_LINKER_FLAGS": "-O3"
}
}
],
"buildPresets": [
{
"name": "ux-debug-build",
"displayName": "Unix Makefiles Debug Build",
"description": "Build using the Unix Makefiles Debug configuration",
"configurePreset": "ux-debug",
"configuration": "Debug"
},
{
"name": "ux-release-build",
"displayName": "Unix Makefiles Release Build",
"description": "Build using the Unix Makefiles Release configuration",
"configurePreset": "ux-release",
"configuration": "Release"
}
]
}