Skip to content
Merged
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
16 changes: 16 additions & 0 deletions vcpkg/users/host-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,19 @@ tool ports are common examples. In this case, you can use the `"native"`
supports expression to describe this. This supports expression is true when
`VCPKG_CROSSCOMPILING` is false (implying that `TARGET_TRIPLET ==
HOST_TRIPLET`).

## VCPKG_USE_HOST_TOOLS

Set this CMake option to add executables built by vcpkg to
[`CMAKE_PROGRAM_PATH`](https://cmake.org/cmake/help/latest/variable/CMAKE_PROGRAM_PATH.html).
and make them available during your build process.

For this option to take effect it must be set before any call to `project()` in
your `CMakeLists.txt` file. The `VCPKG_HOST_TRIPLET` variable must also be set.

Only tools installed in the [`tools` folder](../reference/installation-tree-layout.md#layout-tools)
for the host triplet are added to `CMAKE_PROGRAM_PATH`.
Effectively, the following locations are added:

* `${VCPKG_INSTALLED/DIR}/${VCPKG_HOST_TRIPLET}/tools`
* `${VCPKG_INSTALLED/DIR}/${VCPKG_HOST_TRIPLET}/tools/*/bin`