-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakePresets.json
220 lines (220 loc) · 6.72 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 26,
"patch": 5
},
"configurePresets": [
{
"name": "conf-common",
"description": "General settings that apply to all configurations",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}"
},
{
"name": "conf-linux-common",
"description": "Linux common settings",
"hidden": true,
"inherits": "conf-common",
"condition": {
"type": "inList",
"string": "${hostSystemName}",
"list": [
"Linux"
]
},
"vendor": {
"microsoft.com/VisualStudioRemoteSettings/CMake/1.0": {
"sourceDir": "$env{HOME}/.vs/$ms{projectDirName}"
},
"jetbrains.com/clion": {
"toolchain": "OpenCATTUS RHEL9 Dev"
}
}
},
{
"name": "conf-linux-gcc-common",
"description": "Target Linux OS with the gcc compiler",
"hidden": true,
"inherits": "conf-linux-common",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "rhel9-gcc-release",
"displayName": "RHEL9 GCC Release",
"description": "Target Red Hat Enterprise Linux 9 with the gcc compiler, release build type",
"inherits": "conf-linux-gcc-common",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "rhel9-gcc-debug",
"displayName": "RHEL9 GCC Debug",
"description": "Target Red Hat Enterprise Linux 9 with the gcc compiler, debug build type",
"inherits": "conf-linux-gcc-common",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "conf-linux-gcc-toolset-14-common",
"description": "Target Linux OS with the gcc toolset 14 compiler",
"hidden": true,
"inherits": "conf-linux-common",
"environment": {
"PATH": "/opt/rh/gcc-toolset-14/root/usr/bin:$penv{PATH}",
"MANPATH": "/opt/rh/gcc-toolset-14/root/usr/share/man:$penv{MANPATH}",
"INFOPATH": "/opt/rh/gcc-toolset-14/root/usr/share/info:$penv{INFOPATH}",
"PCP_DIR": "/opt/rh/gcc-toolset-14/root",
"LD_LIBRARY_PATH": "/opt/rh/gcc-toolset-14/root/usr/lib64:$penv{LD_LIBRARY_PATH}",
"PKG_CONFIG_PATH": "/opt/rh/gcc-toolset-14/root/usr/lib64/pkgconfig:$penv{PKG_CONFIG_PATH}",
"X_SCLS": "gcc-toolset-14"
},
"cacheVariables": {
"CMAKE_C_COMPILER": "/opt/rh/gcc-toolset-14/root/usr/bin/gcc",
"CMAKE_CXX_COMPILER": "/opt/rh/gcc-toolset-14/root/usr/bin/g++"
}
},
{
"name": "rhel9-gcc-toolset-14-release",
"displayName": "RHEL9 GCC 14 Release",
"description": "Target Red Hat Enterprise Linux 9 with the gcc toolset 14 compiler, release build type",
"inherits": "conf-linux-gcc-toolset-14-common",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "rhel9-gcc-toolset-14-debug",
"displayName": "RHEL9 GCC 14 Debug",
"description": "Target Red Hat Enterprise Linux 9 with the gcc toolset 14 compiler, debug build type",
"inherits": "conf-linux-gcc-toolset-14-common",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "conf-linux-clang-common",
"description": "Target Linux OS with the clang compiler",
"hidden": true,
"inherits": "conf-linux-common",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "rhel9-clang-release",
"displayName": "clang Release",
"description": "Target Linux OS with the clang compiler, release build type",
"inherits": "conf-linux-clang-common",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "rhel9-clang-debug",
"displayName": "clang Debug",
"description": "Target Linux OS with the clang compiler, debug build type",
"inherits": "conf-linux-clang-common",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
}
],
"buildPresets": [
{
"name": "rhel9-gcc-release-build",
"displayName": "gcc build release",
"configurePreset": "rhel9-gcc-release"
},
{
"name": "rhel9-gcc-debug-build",
"displayName": "gcc build debug",
"configurePreset": "rhel9-gcc-debug"
},
{
"name": "rhel9-gcc-toolset-14-release-build",
"displayName": "gcc toolset 14 build release",
"configurePreset": "rhel9-gcc-toolset-14-release"
},
{
"name": "rhel9-gcc-toolset-14-debug-build",
"displayName": "gcc toolset 14 build debug",
"configurePreset": "rhel9-gcc-toolset-14-debug"
},
{
"name": "rhel9-clang-release-build",
"displayName": "clang build debug",
"configurePreset": "rhel9-clang-release"
},
{
"name": "rhel9-clang-debug-build",
"displayName": "clang build debug",
"configurePreset": "rhel9-clang-debug"
}
],
"testPresets": [
{
"name": "test-common",
"description": "Test CMake settings that apply to all configurations",
"hidden": true,
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": true
}
},
{
"name": "test-rhel9-gcc-release",
"displayName": "Strict",
"description": "Enable output and stop on failure",
"inherits": "test-common",
"configurePreset": "rhel9-gcc-release"
},
{
"name": "test-rhel9-gcc-debug",
"displayName": "Strict",
"description": "Enable output and stop on failure",
"inherits": "test-common",
"configurePreset": "rhel9-gcc-debug"
},
{
"name": "test-rhel9-gcc-toolset-14-release",
"displayName": "Strict",
"description": "Enable output and stop on failure",
"inherits": "test-common",
"configurePreset": "rhel9-gcc-toolset-14-release"
},
{
"name": "test-rhel9-gcc-toolset-14-debug",
"displayName": "Strict",
"description": "Enable output and stop on failure",
"inherits": "test-common",
"configurePreset": "rhel9-gcc-toolset-14-debug"
},
{
"name": "test-rhel9-clang-release",
"displayName": "Strict",
"description": "Enable output and stop on failure",
"inherits": "test-common",
"configurePreset": "rhel9-clang-release"
},
{
"name": "test-rhel9-clang-debug",
"displayName": "Strict",
"description": "Enable output and stop on failure",
"inherits": "test-common",
"configurePreset": "rhel9-clang-debug"
}
]
}