-
Notifications
You must be signed in to change notification settings - Fork 30
/
CMakePresets.json
154 lines (154 loc) · 4.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
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
154
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "msvc142-base",
"description": "Sets generator related basic settings",
"hidden": true,
"generator": "Visual Studio 16 2019",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": {
"type": "FILEPATH",
"value": "${sourceDir}/src/cmake/config/msvc142.config.cmake"
}
},
"architecture":
{
"value": "x64",
"strategy": "set"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [ "Windows" ]
}
}
},
{
"name": "msvc143-base",
"description": "Sets generator related basic settings",
"hidden": true,
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": {
"type": "FILEPATH",
"value": "${sourceDir}/src/cmake/config/msvc143.config.cmake"
}
},
"architecture":
{
"value": "x64",
"strategy": "set"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [ "Windows" ]
}
}
},
{
"name": "msvc142",
"displayName": "MSVC 14.2",
"description": "VS2019",
"inherits": ["msvc142-base"],
"binaryDir": "${sourceDir}/build/msvc142"
},
{
"name": "msvc143",
"displayName": "MSVC 14.3",
"description": "VS2022",
"inherits": ["msvc143-base"],
"binaryDir": "${sourceDir}/build/msvc143"
}
],
"buildPresets": [
{
"name": "msvc142-core-build",
"description": "Inherits environment from base configurePreset",
"configurePreset": "msvc142-base",
"hidden": true,
"inheritConfigureEnvironment": true
},
{
"name": "msvc143-core-build",
"description": "Inherits environment from base configurePreset",
"configurePreset": "msvc143-base",
"hidden": true,
"inheritConfigureEnvironment": true
},
{
"name": "msvc142-clean-build",
"description": "Clean before local build (--clean-first)",
"configurePreset": "msvc142",
"inherits": "msvc142-core-build",
"cleanFirst": true
},
{
"name": "msvc143-clean-build",
"description": "Clean before local build (--clean-first)",
"configurePreset": "msvc143",
"inherits": "msvc143-core-build",
"cleanFirst": true
},
{
"name": "msvc142-normal-build",
"description": "Build with normal log output",
"configurePreset": "msvc142",
"inherits": "msvc142-core-build",
"nativeToolOptions": [ "-verbosity:normal" ]
},
{
"name": "msvc143-normal-build",
"description": "Build with normal log output",
"configurePreset": "msvc143",
"inherits": "msvc143-core-build",
"nativeToolOptions": [ "-verbosity:normal" ]
},
{
"name": "msvc142-verbose-build",
"description": "Build with detailed log output",
"configurePreset": "msvc142",
"inherits": "msvc142-core-build",
"nativeToolOptions": [ "-verbosity:detailed" ]
},
{
"name": "msvc143-verbose-build",
"description": "Build with detailed log output",
"configurePreset": "msvc143",
"inherits": "msvc143-core-build",
"nativeToolOptions": [ "-verbosity:detailed" ]
}
],
"testPresets": [
{
"name": "msvc142-core-test",
"description": "Enable output on failure",
"configurePreset": "msvc142-base",
"hidden": false,
"output": { "outputOnFailure": true }
},
{
"name": "msvc143-core-test",
"description": "Enable output on failure",
"configurePreset": "msvc143-base",
"hidden": false,
"output": { "outputOnFailure": true }
},
{
"name": "msvc142-test",
"configurePreset": "msvc142",
"inherits": "msvc142-core-test",
"execution": {"noTestsAction": "error", "stopOnFailure": false}
},
{
"name": "msvc143-test",
"configurePreset": "msvc143",
"inherits": "msvc143-core-test",
"execution": {"noTestsAction": "error", "stopOnFailure": false}
}
]
}