mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 11:53:03 +08:00
[VcpkgPaths.cpp] Don't modify and ref on the fly
This commit is contained in:
parent
797c94caec
commit
95eadb8ddd
@ -318,9 +318,9 @@ namespace vcpkg
|
|||||||
|
|
||||||
// VS2017
|
// VS2017
|
||||||
Optional<Toolset> vs2017_toolset;
|
Optional<Toolset> vs2017_toolset;
|
||||||
for (const fs::path& instance : vs2017_installation_instances)
|
for (const std::string& instance : vs2017_installation_instances)
|
||||||
{
|
{
|
||||||
const fs::path vc_dir = instance / "VC";
|
const fs::path vc_dir = fs::path{instance} / "VC";
|
||||||
|
|
||||||
// Skip any instances that do not have vcvarsall.
|
// Skip any instances that do not have vcvarsall.
|
||||||
const fs::path vcvarsall_dir = vc_dir / "Auxiliary" / "Build";
|
const fs::path vcvarsall_dir = vc_dir / "Auxiliary" / "Build";
|
||||||
|
Loading…
Reference in New Issue
Block a user