aboutsummaryrefslogtreecommitdiff
path: root/CMakePresets.json
diff options
context:
space:
mode:
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"
}
]