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

Commit f37c1ab

Browse files
authored
Merge pull request #16 from oskidan/main
Add support for macOS X host to CMakePresets.json
2 parents ae64564 + 0f36bfe commit f37c1ab

File tree

1 file changed

+32
-29
lines changed

1 file changed

+32
-29
lines changed

CMakePresets.json

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,17 @@
3838
}
3939
},
4040
{
41-
"name": "conf-linux-common",
42-
"description": "Linux settings for gcc and clang toolchains",
41+
"name": "conf-unixlike-common",
42+
"description": "Unix-like OS settings for gcc and clang toolchains",
4343
"hidden": true,
4444
"inherits": "conf-common",
4545
"condition": {
46-
"type": "equals",
47-
"lhs": "${hostSystemName}",
48-
"rhs": "Linux"
46+
"type": "inList",
47+
"string": "${hostSystemName}",
48+
"list": [
49+
"Linux",
50+
"Darwin"
51+
]
4952
},
5053
"vendor": {
5154
"microsoft.com/VisualStudioRemoteSettings/CMake/1.0": {
@@ -75,7 +78,7 @@
7578
"CMAKE_CXX_COMPILER": "cl",
7679
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
7780
"ENABLE_DEVELOPER_MODE": "ON"
78-
}
81+
}
7982
},
8083
{
8184
"name": "windows-msvc-debug-user-mode",
@@ -87,7 +90,7 @@
8790
"CMAKE_CXX_COMPILER": "cl",
8891
"CMAKE_BUILD_TYPE": "Debug",
8992
"ENABLE_DEVELOPER_MODE": "OFF"
90-
}
93+
}
9194
},
9295
{
9396
"name": "windows-msvc-release-user-mode",
@@ -99,7 +102,7 @@
99102
"CMAKE_CXX_COMPILER": "cl",
100103
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
101104
"ENABLE_DEVELOPER_MODE": "OFF"
102-
}
105+
}
103106
},
104107
{
105108
"name": "windows-clang-debug",
@@ -134,43 +137,43 @@
134137
}
135138
},
136139
{
137-
"name": "linux-gcc-debug",
140+
"name": "unixlike-gcc-debug",
138141
"displayName": "gcc Debug",
139-
"description": "Target Linux with the gcc compiler, debug build type",
140-
"inherits": "conf-linux-common",
142+
"description": "Target Unix-like OS with the gcc compiler, debug build type",
143+
"inherits": "conf-unixlike-common",
141144
"cacheVariables": {
142145
"CMAKE_C_COMPILER": "gcc",
143146
"CMAKE_CXX_COMPILER": "g++",
144147
"CMAKE_BUILD_TYPE": "Debug"
145148
}
146149
},
147150
{
148-
"name": "linux-gcc-release",
151+
"name": "unixlike-gcc-release",
149152
"displayName": "gcc Release",
150-
"description": "Target Linux with the gcc compiler, release build type",
151-
"inherits": "conf-linux-common",
153+
"description": "Target Unix-like OS with the gcc compiler, release build type",
154+
"inherits": "conf-unixlike-common",
152155
"cacheVariables": {
153156
"CMAKE_C_COMPILER": "gcc",
154157
"CMAKE_CXX_COMPILER": "g++",
155158
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
156159
}
157160
},
158161
{
159-
"name": "linux-clang-debug",
162+
"name": "unixlike-clang-debug",
160163
"displayName": "clang Debug",
161-
"description": "Target Linux with the clang compiler, debug build type",
162-
"inherits": "conf-linux-common",
164+
"description": "Target Unix-like OS with the clang compiler, debug build type",
165+
"inherits": "conf-unixlike-common",
163166
"cacheVariables": {
164167
"CMAKE_C_COMPILER": "clang",
165168
"CMAKE_CXX_COMPILER": "clang++",
166169
"CMAKE_BUILD_TYPE": "Debug"
167170
}
168171
},
169172
{
170-
"name": "linux-clang-release",
173+
"name": "unixlike-clang-release",
171174
"displayName": "clang Release",
172-
"description": "Target Linux with the clang compiler, release build type",
173-
"inherits": "conf-linux-common",
175+
"description": "Target Unix-like OS with the clang compiler, release build type",
176+
"inherits": "conf-unixlike-common",
174177
"cacheVariables": {
175178
"CMAKE_C_COMPILER": "clang",
176179
"CMAKE_CXX_COMPILER": "clang++",
@@ -220,32 +223,32 @@
220223
"configurePreset": "windows-clang-release"
221224
},
222225
{
223-
"name": "test-linux-gcc-debug",
226+
"name": "test-unixlike-gcc-debug",
224227
"displayName": "Strict",
225228
"description": "Enable output and stop on failure",
226229
"inherits": "test-common",
227-
"configurePreset": "linux-gcc-debug"
230+
"configurePreset": "unixlike-gcc-debug"
228231
},
229232
{
230-
"name": "test-linux-gcc-release",
233+
"name": "test-unixlike-gcc-release",
231234
"displayName": "Strict",
232235
"description": "Enable output and stop on failure",
233236
"inherits": "test-common",
234-
"configurePreset": "linux-gcc-release"
237+
"configurePreset": "unixlike-gcc-release"
235238
},
236239
{
237-
"name": "test-linux-clang-debug",
240+
"name": "test-unixlike-clang-debug",
238241
"displayName": "Strict",
239242
"description": "Enable output and stop on failure",
240243
"inherits": "test-common",
241-
"configurePreset": "linux-clang-debug"
244+
"configurePreset": "unixlike-clang-debug"
242245
},
243246
{
244-
"name": "test-linux-clang-release",
247+
"name": "test-unixlike-clang-release",
245248
"displayName": "Strict",
246249
"description": "Enable output and stop on failure",
247250
"inherits": "test-common",
248-
"configurePreset": "linux-clang-release"
251+
"configurePreset": "unixlike-clang-release"
249252
}
250253
]
251-
}
254+
}

0 commit comments

Comments
 (0)