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

Replay VCPKG_FIND_PACKAGE_ #344

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/buildsystems/cmake-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,14 @@ See the [`--feature-flags=`](../../commands/common-options.md#) command line opt

When set to `ON`, Print every call to `find_package`. Nested calls (e.g. via `find_dependency`) are indented according to nesting depth.


### `VCPKG_FIND_PACKAGE_<Pkg>`

When this option is turned set, non-nested calls to `find_package` are either
required (`VCPKG_FIND_PACKAGE_<Pkg>=ON`) or disabled (`VCPKG_FIND_PACKAGE_<Pkg>=OFF`).

This variable is a tool to control direct dependencies and related features in vcpkg ports
which use the CMake build system. It can be used with `vcpkg_check_features` and avoids
unintended effects on transitive dependencies.

[CMake Presets]: https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html