chore(build): cache FetchContent dependencies across build directories (#7221)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Raphael Coeffic
2026-06-22 14:32:30 +10:00
committed by GitHub
co-authored by Claude Opus 4.6
parent d67604f9f5
commit 94f5d50ffc
9 changed files with 42 additions and 21 deletions
+13 -9
View File
@@ -1,43 +1,47 @@
{
"version": 6,
"configurePresets": [
{
"name": "default",
"hidden": true,
"cacheVariables": {
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.cache/fetchcontent"
},
"warnings": {
"dev": false
}
},
{
"name": "firmware",
"inherits": "default",
"displayName": "Firmware",
"binaryDir": "build/fw",
"toolchainFile": "cmake/toolchain/arm-none-eabi.cmake",
"cacheVariables": {
"EdgeTX_SUPERBUILD": false,
"NATIVE_BUILD": false
},
"warnings": {
"dev": false
}
},
{
"name": "companion",
"inherits": "default",
"displayName": "Companion",
"binaryDir": "build/companion",
"toolchainFile": "cmake/toolchain/native.cmake",
"cacheVariables": {
"EdgeTX_SUPERBUILD": false,
"NATIVE_BUILD": true
},
"warnings": {
"dev": false
}
},
{
"name": "simu",
"inherits": "default",
"displayName": "SDL Simu",
"binaryDir": "build/simu",
"toolchainFile": "cmake/toolchain/native.cmake",
"cacheVariables": {
"EdgeTX_SUPERBUILD": false,
"NATIVE_BUILD": true
},
"warnings": {
"dev": false
}
}
],