From 38217b0adc7dc7cd955718f1f0d719e5b3d7a0f0 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 26 Oct 2023 12:04:55 +0200 Subject: [PATCH] deps presets to handle windows and debug build necessity --- deps/CMakePresets.json | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/deps/CMakePresets.json b/deps/CMakePresets.json index 9edbe5f5c3..9754e044a6 100644 --- a/deps/CMakePresets.json +++ b/deps/CMakePresets.json @@ -1,11 +1,51 @@ { "version": 3, "configurePresets": [ + { + "name": "windows-only", + "hidden": true, + "condition": { + "type": "equals", + "lhs": "${hostSystemName}", + "rhs": "Windows" + }, + "cacheVariables": { + "DEP_DEBUG": true + }, + "environment": { + "PLATFORM": "WINDOWS" + } + }, + { + "name": "linux-only", + "hidden": true, + "condition": { + "type": "equals", + "lhs": "${hostSystemName}", + "rhs": "Linux" + }, + "environment": { + "PLATFORM": "LINUX" + } + }, + { + "name": "mac-only", + "hidden": true, + "condition": { + "type": "equals", + "lhs": "${hostSystemName}", + "rhs": "Darwin" + }, + "environment": { + "PLATFORM": "MAC" + } + }, { "name": "default", "displayName": "Default Config", "description": "Default build for any desktop OS", "binaryDir": "${sourceDir}/build-default", + "inherits": ["windows-only", "linux-only"], "cacheVariables": { "CMAKE_BUILD_TYPE": "Release", "DEP_WX_GTK3": true,