Skip to content

Commit 3202879

Browse files
authored
Update vcpkg.md
1 parent 6de44a1 commit 3202879

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/vcpkg.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,3 +721,11 @@ More: [1](https://learn.microsoft.com/en-us/vcpkg/commands/help), [2](https://gi
721721
722722
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake
723723
724+
## Asset caching
725+
Asset caching allows vcpkg to use alternative download endpoints to acquire a package's assets (such as source code and build tools) from a configured mirror location. If the asset is not available in the mirror location, vcpkg will download it from its original source and then store a copy in the mirror for future use.
726+
727+
Asset caching is configured via:
728+
- The `X_VCPKG_ASSET_SOURCES` environment variable
729+
- The `--x-asset-sources` command-line option.
730+
### Set up a vcpkg asset cache
731+
[more](https://learn.microsoft.com/en-us/vcpkg/consume/asset-caching?pivots=shell-cmd)

0 commit comments

Comments
 (0)