[vcpkg edit] Fix whitespace-in-path issue

This commit is contained in:
Alexander Karatarakis 2018-05-16 18:59:25 -07:00
parent 55322d464e
commit 950a3d0049

View File

@ -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());
}); });
} }