aboutsummaryrefslogtreecommitdiff
path: root/CMakePresets.json
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-12-12 17:41:26 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-12-12 17:41:26 +0100
commit2846867da7e88c3a665d0a8bed6ccec60e6476a1 (patch)
tree3c0263e7471ee58707868e466d9f05ae58ce3b68 /CMakePresets.json
parent4bf9eded3a5d6b007ba79a5716143fa8b3a5aaf6 (diff)
downloadteachos-2846867da7e88c3a665d0a8bed6ccec60e6476a1.tar.xz
teachos-2846867da7e88c3a665d0a8bed6ccec60e6476a1.zip
build: move platform configuration to preset
Diffstat (limited to 'CMakePresets.json')
-rw-r--r--CMakePresets.json21
1 files changed, 16 insertions, 5 deletions
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"
}
]