Fix deps preset conditionals

This commit is contained in:
tamasmeszaros 2023-10-26 12:42:46 +02:00
parent fe22004818
commit cd094ce831

View File

@ -1,6 +1,15 @@
{ {
"version": 3, "version": 3,
"configurePresets": [ "configurePresets": [
{
"name": "linux-only",
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{ {
"name": "windows-only", "name": "windows-only",
"hidden": true, "hidden": true,
@ -11,21 +20,6 @@
}, },
"cacheVariables": { "cacheVariables": {
"DEP_DEBUG": true "DEP_DEBUG": true
},
"environment": {
"PLATFORM": "WINDOWS"
}
},
{
"name": "linux-only",
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"environment": {
"PLATFORM": "LINUX"
} }
}, },
{ {
@ -35,9 +29,6 @@
"type": "equals", "type": "equals",
"lhs": "${hostSystemName}", "lhs": "${hostSystemName}",
"rhs": "Darwin" "rhs": "Darwin"
},
"environment": {
"PLATFORM": "MAC"
} }
}, },
{ {
@ -45,7 +36,11 @@
"displayName": "Default Config", "displayName": "Default Config",
"description": "Default build for any desktop OS", "description": "Default build for any desktop OS",
"binaryDir": "${sourceDir}/build-default", "binaryDir": "${sourceDir}/build-default",
"inherits": ["windows-only", "linux-only"], "inherits": ["mac-only", "windows-only", "linux-only"],
"condition": {
"type": "const",
"value": true
},
"cacheVariables": { "cacheVariables": {
"CMAKE_BUILD_TYPE": "Release", "CMAKE_BUILD_TYPE": "Release",
"DEP_WX_GTK3": true, "DEP_WX_GTK3": true,