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
+1 -1
View File
@@ -81,7 +81,7 @@ file(WRITE "\${CMAKE_CURRENT_BINARY_DIR}/wasi_sdk_path.txt" "\${WASI_SDK_PATH}")
CMAKEOF
if ! cmake -S "$fetch_dir" -B "$fetch_dir/build" \
-DFETCHCONTENT_BASE_DIR="$PWD/_deps" 2>&1; then
-DFETCHCONTENT_BASE_DIR="$SRCDIR/.cache/fetchcontent" 2>&1; then
echo "❌ Failed to fetch WASI SDK"
return 1
fi