Skip to content

Commit 6bd74ef

Browse files
authored
Add CMake presets for macOS. (shadps4-emu#3748)
1 parent bf34665 commit 6bd74ef

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

CMakeDarwinPresets.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"version": 9,
3+
"cmakeMinimumRequired": {
4+
"major": 3,
5+
"minor": 30,
6+
"patch": 0
7+
},
8+
"configurePresets": [
9+
{
10+
"name": "x64-Clang-Base",
11+
"hidden": true,
12+
"generator": "Ninja",
13+
"binaryDir": "${sourceDir}/Build/${presetName}",
14+
"cacheVariables": {
15+
"CMAKE_C_COMPILER": "clang",
16+
"CMAKE_CXX_COMPILER": "clang++",
17+
"CMAKE_INSTALL_PREFIX": "${sourceDir}/Build/${presetName}",
18+
"CMAKE_OSX_ARCHITECTURES": "x86_64"
19+
}
20+
}
21+
]
22+
}

REUSE.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ path = [
55
"REUSE.toml",
66
"crowdin.yml",
77
"CMakeSettings.json",
8+
"CMakeDarwinPresets.json",
89
"CMakeLinuxPresets.json",
910
"CMakeWindowsPresets.json",
1011
"CMakePresets.json",

0 commit comments

Comments
 (0)