Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs for VCPKG_ENVIRONMENT_SETUP_SCRIPTS #337

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions vcpkg/users/triplets.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,16 @@ tracked as part of the package abis.
This will cause [Binary Caching](binarycaching.md) to reuse builds from older or
newer compilers.

### VCPKG_ENVIRONMENT_SETUP_SCRIPTS

A list of scripts to execute before vcpkg starts building. The scripts must be runable on the given platform.
If the script is a cmake script, cmake will be called to execute the script.
This can be used to prepare the environment before vcpkg runs any other steps, like e.g. compiler detection.
If the scripts are meant to participate in the abi hash use `VCPKG_HASH_ADDITIONAL_FILES` to declare them as ABI relevant.

> [!NOTE]
> Environment variables cannot be set in CMake scripts since CMake will run in its own process

## Windows-specific Variables

### VCPKG_ENV_PASSTHROUGH
Expand Down