Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit c96cd54

Browse files
Oleksii SkidanOleksii Skidan
authored andcommitted
Add support for macOS X host to CMakePresets.json
1 parent ae64564 commit c96cd54

File tree

1 file changed

+51
-4
lines changed

1 file changed

+51
-4
lines changed

CMakePresets.json

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@
5353
}
5454
}
5555
},
56+
{
57+
"name": "conf-darwin-common",
58+
"description": "Darwin (macOS) settings for AppleClang tooolchain",
59+
"hidden": true,
60+
"inherits": "conf-common",
61+
"condition": {
62+
"type": "equals",
63+
"lhs": "${hostSystemName}",
64+
"rhs": "Darwin"
65+
}
66+
},
5667
{
5768
"name": "windows-msvc-debug-developer-mode",
5869
"displayName": "msvc Debug (Developer Mode)",
@@ -75,7 +86,7 @@
7586
"CMAKE_CXX_COMPILER": "cl",
7687
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
7788
"ENABLE_DEVELOPER_MODE": "ON"
78-
}
89+
}
7990
},
8091
{
8192
"name": "windows-msvc-debug-user-mode",
@@ -87,7 +98,7 @@
8798
"CMAKE_CXX_COMPILER": "cl",
8899
"CMAKE_BUILD_TYPE": "Debug",
89100
"ENABLE_DEVELOPER_MODE": "OFF"
90-
}
101+
}
91102
},
92103
{
93104
"name": "windows-msvc-release-user-mode",
@@ -99,7 +110,7 @@
99110
"CMAKE_CXX_COMPILER": "cl",
100111
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
101112
"ENABLE_DEVELOPER_MODE": "OFF"
102-
}
113+
}
103114
},
104115
{
105116
"name": "windows-clang-debug",
@@ -176,6 +187,28 @@
176187
"CMAKE_CXX_COMPILER": "clang++",
177188
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
178189
}
190+
},
191+
{
192+
"name": "darwin-clang-debug",
193+
"displayName": "AppleClang Debug",
194+
"description": "Target Darwin (macOS) with the AppleCalng compiler, debug build type",
195+
"inherits": "conf-darwin-common",
196+
"cacheVariables": {
197+
"CMAKE_C_COMPILER": "clang",
198+
"CMAKE_CXX_COMPILER": "clang++",
199+
"CMAKE_BUILD_TYPE": "Debug"
200+
}
201+
},
202+
{
203+
"name": "darwin-clang-release",
204+
"displayName": "AppleClang Release",
205+
"description": "Target Darwin (macOS) with the AppleCalng compiler, release build type",
206+
"inherits": "conf-darwin-common",
207+
"cacheVariables": {
208+
"CMAKE_C_COMPILER": "clang",
209+
"CMAKE_CXX_COMPILER": "clang++",
210+
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
211+
}
179212
}
180213
],
181214
"testPresets": [
@@ -246,6 +279,20 @@
246279
"description": "Enable output and stop on failure",
247280
"inherits": "test-common",
248281
"configurePreset": "linux-clang-release"
282+
},
283+
{
284+
"name": "test-darwin-clang-debug",
285+
"displayName": "Strict",
286+
"description": "Enable output and stop on failure",
287+
"inherits": "test-common",
288+
"configurePreset": "darwin-clang-debug"
289+
},
290+
{
291+
"name": "test-darwin-clang-release",
292+
"displayName": "Strict",
293+
"description": "Enable output and stop on failure",
294+
"inherits": "test-common",
295+
"configurePreset": "darwin-clang-release"
249296
}
250297
]
251-
}
298+
}

0 commit comments

Comments
 (0)