Fix CMake presets for Linux (#3173)

* Add platform specific base presets

* Revert "Add platform specific base presets"

This reverts commit a949a9f395.

* better

* cleanup

* update REUSE
This commit is contained in:
Fire Cube 2025-06-29 22:14:52 +02:00 committed by GitHub
parent 434dcde9f3
commit 6bf3c44b9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 50 additions and 35 deletions

19
CMakeLinuxPresets.json Normal file
View file

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

View file

@ -1,44 +1,12 @@
{
"version": 5,
"version": 9,
"cmakeMinimumRequired": {
"major": 3,
"minor": 24,
"minor": 30,
"patch": 0
},
"include": ["CMake${hostSystemName}Presets.json"],
"configurePresets": [
{
"name": "Base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/Build/${presetName}",
"installDir": "${sourceDir}/Install/${presetName}"
},
{
"name": "Qt-GUI",
"hidden": true,
"cacheVariables": {
"ENABLE_QT_GUI": "ON"
}
},
{
"name": "x64-Windows-Base",
"inherits": [ "Base" ],
"hidden": true,
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"intelliSenseMode": "windows-clang-x64"
}
}
},
{
"name": "x64-Clang-Debug",
"displayName": "Clang x64 Debug",

26
CMakeWindowsPresets.json Normal file
View file

@ -0,0 +1,26 @@
{
"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-cl",
"CMAKE_CXX_COMPILER": "clang-cl",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/Build/${presetName}"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"intelliSenseMode": "windows-clang-x64"
}
}
}
]
}

View file

@ -5,6 +5,8 @@ path = [
"REUSE.toml",
"crowdin.yml",
"CMakeSettings.json",
"CMakeLinuxPresets.json",
"CMakeWindowsPresets.json",
"CMakePresets.json",
".github/FUNDING.yml",
".github/shadps4.png",