-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
127 lines (127 loc) · 3.36 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 26,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"displayName": "Default Config",
"description": "Default build using Ninja generator and with vcpkg toolchain",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/bin"
}
},
{
"name": "msbuild-default",
"inherits": "default",
"displayName": "MSBuild Configure Settings",
"description": "Configure with VS generators",
"generator": "Visual Studio 17 2022",
"architecture": {
"strategy": "set",
"value": "x64"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [ "Windows" ]
}
}
},
{
"name": "msbuild-clang",
"inherits": "msbuild-default",
"displayName": "MSBuild Configure Settings (ClangCl)",
"description": "Configure with VS generators and ClangCl compiler",
"toolset": "ClangCL",
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [ "Windows" ],
"intelliSenseMode": "windows-clang-x64"
}
}
},
{
"name": "ninja-gcc",
"inherits": "default",
"displayName": "Ninja Configure Settings (GCC)",
"description": "Configure with Ninja generator and GCC-11 compiler",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc-11",
"CMAKE_CXX_COMPILER": "g++-11"
}
},
{
"name": "ninja-clang",
"inherits": "default",
"displayName": "Ninja Configure Settings (Clang)",
"description": "Configure with Ninja generator and Clang-15 compiler",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-15",
"CMAKE_CXX_COMPILER": "clang++-15"
}
}
],
"buildPresets": [
{
"name": "msvc-dbg",
"configurePreset": "msbuild-default",
"displayName": "Debug",
"configuration": "Debug",
"description": "Disable optimizations - include debug information"
},
{
"name": "msvc",
"configurePreset": "msbuild-default",
"displayName": "Release",
"configuration": "Release",
"description": "Optimize for speed - exclude debug information"
},
{
"name": "clang-cl-dbg",
"configurePreset": "msbuild-clang",
"displayName": "Debug",
"configuration": "Debug",
"description": "Disable optimizations - include debug information"
},
{
"name": "clang-cl",
"configurePreset": "msbuild-clang",
"displayName": "Release",
"configuration": "Release",
"description": "Optimize for speed - exclude debug information"
},
{
"name": "gcc-dbg",
"configurePreset": "ninja-gcc",
"displayName": "Debug",
"configuration": "Debug",
"description": "Disable optimizations - include debug information"
},
{
"name": "gcc",
"configurePreset": "ninja-gcc",
"displayName": "Release",
"configuration": "Release",
"description": "Optimize for speed - exclude debug information"
},
{
"name": "clang-dbg",
"configurePreset": "ninja-clang",
"displayName": "Debug",
"configuration": "Debug",
"description": "Disable optimizations - include debug information"
},
{
"name": "clang",
"configurePreset": "ninja-clang",
"displayName": "Release",
"configuration": "Release",
"description": "Optimize for speed - exclude debug information"
}
]
}