mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 22:18:59 +08:00
[vcpkg edit] Fix whitespace-in-path issue
This commit is contained in:
parent
55322d464e
commit
950a3d0049
@ -78,7 +78,8 @@ namespace vcpkg::Commands::Edit
|
|||||||
if (Util::Sets::contains(options.switches, OPTION_BUILDTREES))
|
if (Util::Sets::contains(options.switches, OPTION_BUILDTREES))
|
||||||
{
|
{
|
||||||
return Util::fmap(ports, [&](const std::string& port_name) -> std::string {
|
return Util::fmap(ports, [&](const std::string& port_name) -> std::string {
|
||||||
return (paths.buildtrees / port_name).u8string();
|
const auto buildtrees_current_dir = paths.buildtrees / port_name;
|
||||||
|
return Strings::format(R"###("%s")###", buildtrees_current_dir.u8string());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user