From 2846867da7e88c3a665d0a8bed6ccec60e6476a1 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 12 Dec 2025 17:41:26 +0100 Subject: build: move platform configuration to preset --- CMakePresets.json | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'CMakePresets.json') diff --git a/CMakePresets.json b/CMakePresets.json index 3e8a3a8..26e02d1 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -2,7 +2,8 @@ "version": 6, "configurePresets": [ { - "name": "default", + "name": "base", + "hidden": true, "binaryDir": "${sourceDir}/build", "generator": "Ninja Multi-Config", "toolchainFile": "cmake/Platforms/x86_64.cmake", @@ -11,17 +12,27 @@ "CMAKE_EXPORT_COMPILE_COMMANDS": true, "CMAKE_VERIFY_INTERFACE_HEADER_SETS": true } + }, + { + "name": "x86_64", + "inherits": "base", + "toolchainFile": "cmake/Platforms/x86_64.cmake", + "cacheVariables": { + "TEACHOS_PLATFORM_FRAME_SIZE": "4096", + "TEACHOS_PLATFORM_PAGE_SIZE": "4096", + "TEACHOS_PLATFORM_PAGING_LEVELS": "4" + } } ], "buildPresets": [ { - "name": "debug", - "configurePreset": "default", + "name": "x86_64-dbg", + "configurePreset": "x86_64", "configuration": "Debug" }, { - "name": "release", - "configurePreset": "default", + "name": "x86_64-rel", + "configurePreset": "x86_64", "configuration": "MinSizeRel" } ] -- cgit v1.2.3