Add CMake presets for macOS. (#3748)

This commit is contained in:
squidbus
2025-10-24 16:55:41 -07:00
committed by GitHub
parent bf34665a8f
commit 6bd74ef769
2 changed files with 23 additions and 0 deletions

22
CMakeDarwinPresets.json Normal file
View File

@@ -0,0 +1,22 @@
{
"version": 9,
"cmakeMinimumRequired": {
"major": 3,
"minor": 30,
"patch": 0
},
"configurePresets": [
{
"name": "x64-Clang-Base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/Build/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/Build/${presetName}",
"CMAKE_OSX_ARCHITECTURES": "x86_64"
}
}
]
}

View File

@@ -5,6 +5,7 @@ path = [
"REUSE.toml",
"crowdin.yml",
"CMakeSettings.json",
"CMakeDarwinPresets.json",
"CMakeLinuxPresets.json",
"CMakeWindowsPresets.json",
"CMakePresets.json",