Skip to content

Commit

Permalink
cmake: Add "xcode" preset
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Oct 10, 2024
1 parent 0c2c3bb commit 5ae059e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
"version": 3,
"cmakeMinimumRequired": {"major": 3, "minor": 21, "patch": 0},
"configurePresets": [
{
"name": "xcode",
"displayName": "Build using 'Xcode' generator",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"generator": "Xcode",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wno-shorten-64-to-32",
"CMAKE_C_FLAGS": "-Wno-shorten-64-to-32"
}
},
{
"name": "vs2022",
"displayName": "Build using 'Visual Studio 17 2022' generator and 'x64-windows' triplet",
Expand Down

0 comments on commit 5ae059e

Please sign in to comment.