mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 19:03:02 +08:00
[vcpkg] Fix feature interdependency during install
This commit is contained in:
parent
65e95f6348
commit
c267f32bd9
@ -327,8 +327,9 @@ namespace vcpkg::Build
|
||||
std::vector<FeatureSpec> required_fspecs = compute_required_feature_specs(config, status_db);
|
||||
|
||||
// Find all features that aren't installed. This destroys required_fspecs.
|
||||
Util::unstable_keep_if(required_fspecs,
|
||||
[&](FeatureSpec const& fspec) { return !status_db.is_installed(fspec); });
|
||||
Util::unstable_keep_if(required_fspecs, [&](FeatureSpec const& fspec) {
|
||||
return !status_db.is_installed(fspec) && fspec.name() != spec.name();
|
||||
});
|
||||
|
||||
if (!required_fspecs.empty())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user