mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[vcpkg] fix compile on vs2015 (#14915)
* [vcpkg] fix compile on vs2015 * format
This commit is contained in:
parent
d938359602
commit
ed5d7b9006
@ -839,20 +839,21 @@ namespace vcpkg::Install
|
||||
if (args.versions_enabled())
|
||||
{
|
||||
PortFileProvider::VersionedPortfileProvider verprovider(paths);
|
||||
auto baseprovider = [&]() -> PortFileProvider::BaselineProvider {
|
||||
auto baseprovider = [&]() -> std::unique_ptr<PortFileProvider::BaselineProvider> {
|
||||
if (auto p_baseline = manifest_scf.core_paragraph->extra_info.get("$x-default-baseline"))
|
||||
{
|
||||
return PortFileProvider::BaselineProvider(paths, p_baseline->string().to_string());
|
||||
return std::make_unique<PortFileProvider::BaselineProvider>(paths,
|
||||
p_baseline->string().to_string());
|
||||
}
|
||||
else
|
||||
{
|
||||
return PortFileProvider::BaselineProvider(paths);
|
||||
return std::make_unique<PortFileProvider::BaselineProvider>(paths);
|
||||
}
|
||||
}();
|
||||
|
||||
auto install_plan =
|
||||
Dependencies::create_versioned_install_plan(verprovider,
|
||||
baseprovider,
|
||||
*baseprovider,
|
||||
var_provider,
|
||||
manifest_scf.core_paragraph->dependencies,
|
||||
manifest_scf.core_paragraph->overrides,
|
||||
|
Loading…
x
Reference in New Issue
Block a user