Skip to content

Commit 746edf2

Browse files
committed
Add Apple arm64 CMakePreset
1 parent b85c60e commit 746edf2

1 file changed

Lines changed: 42 additions & 1 deletion

File tree

CMakePresets.json

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,20 @@
186186
"rhs": "Linux"
187187
}
188188
},
189+
{
190+
"name": "apple-arm64-base",
191+
"hidden": true,
192+
"binaryDir": "${sourceDir}/build/${presetName}",
193+
"architecture": {
194+
"value": "arm64",
195+
"strategy": "external"
196+
},
197+
"condition": {
198+
"type": "equals",
199+
"lhs": "${hostSystemName}",
200+
"rhs": "Darwin"
201+
}
202+
},
189203
{
190204
"name": "_release",
191205
"hidden": true,
@@ -204,7 +218,7 @@
204218
"name": "_relwithdebinfo",
205219
"hidden": true,
206220
"cacheVariables": {
207-
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
221+
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
208222
}
209223
},
210224
{
@@ -288,6 +302,33 @@
288302
"_ninja",
289303
"_relwithdebinfo"
290304
]
305+
},
306+
{
307+
"name": "apple-arm64-ninja-debug",
308+
"description": "Apple M series preset Debug",
309+
"inherits": [
310+
"apple-arm64-base",
311+
"_ninja",
312+
"_debug"
313+
]
314+
},
315+
{
316+
"name": "apple-arm64-ninja-release",
317+
"description": "Apple M series preset Release",
318+
"inherits": [
319+
"apple-arm64-base",
320+
"_ninja",
321+
"_release"
322+
]
323+
},
324+
{
325+
"name": "apple-arm64-ninja-relwithdebinfo",
326+
"description": "Apple M series preset RelWithDebInfo",
327+
"inherits": [
328+
"apple-arm64-base",
329+
"_ninja",
330+
"_relwithdebinfo"
331+
]
291332
}
292333
],
293334
"buildPresets": [

0 commit comments

Comments
 (0)