You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is not described is how to consume a port, in a private registry, that depends on a specific version of Boost. Say that you have a port foo that depends on some old Boost 1.76.0.
So far I have tried using vcpkg-configuration property in ports/foo/portfile.cmake and, setting a baseline there:
> vcpkg install --overlay-ports=/path/to/ports/foo
Fetching registry information from https://github.com/microsoft/vcpkg (HEAD)...
The "Fetching registry information from" is only printed once and, uses the baseline configured for the registry in bar , which brings newer Boost versions.
I also tried a combination of vcpkg-configuration and overrides, without success.
You have a port named foo that has a vcpkg-configuration object in its vcpkg.json file.
You have a project named bar that adds a dependency on foo.
If that's the case, then the vcpkg-configuration on foo is ignored and that is by design.
vcpkg only reads configuration from the top-level manifest (vpckg.json). You have to add the old-Boost baseline registry in a vcpkg-configuration.json file in your project's (bar's) directory or set the registries in bar's vcpkg-configuration object.
Type of issue
Missing information
Description
I'm reading how to install a specific version for Boost libraries and, it works fine.
What is not described is how to consume a port, in a private registry, that depends on a specific version of Boost. Say that you have a port
foo
that depends on some old Boost 1.76.0.So far I have tried using
vcpkg-configuration
property inports/foo/portfile.cmake
and, setting a baseline there:In the consuming project (let's call it
bar
):The "Fetching registry information from" is only printed once and, uses the baseline configured for the registry in
bar
, which brings newer Boost versions.I also tried a combination of
vcpkg-configuration
andoverrides
, without success.Page URL
https://learn.microsoft.com/en-us/vcpkg/consume/boost-versions
Content source URL
https://github.com/Microsoft/vcpkg-docs/blob/main/vcpkg/consume/boost-versions.md
Document Version Independent Id
efdb8438-0860-24e8-c015-44fda7053a6a
Article author
@vicroms
Metadata
The text was updated successfully, but these errors were encountered: