-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Indirectly referenced library will always be installed with default features even if they're not required #17033
Comments
We have discussed the similar behavior before, see PR #11602, this seems intentional behavior, @strega-nil, could you help confirm this issue? |
Yeah, this is intentional. In the "classic mode" world, it makes sense to always install default features, so that we don't have to keep rebuilding libraries. In "manifest mode", it can make sense to not do that, since we don't have an install-set that is not described by manifests. |
I'm closing this issue because all behaviors described in this thread are by design, please see the discussion in pr #11602 about the rationale.
libb:
Changing liba's vcpkg.json to:
|
Describe the bug
I have a libA referencing libB using manifest vcpkg.json:
And libB references libzip[core]. libB's vcpkg.json (in my custom ports overlay) is:
When I use
vcpkg install --feature-flags=manifests
in libA's directory, it will install libzip with default features instead of [core].For now, I have to workaround by changing my libA's vcpkg.json to:
Environment
Expected behavior
If libzip is not installed already, it should be installed with the required features only.
The text was updated successfully, but these errors were encountered: