From f6d3521efa8ab4d6f5abcd65009b189aff082a9e Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 29 Jan 2022 18:53:15 +0800 Subject: [PATCH] Set the proper path for v140 --- tool/quick_start/find_vstudio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/quick_start/find_vstudio.py b/tool/quick_start/find_vstudio.py index 9853a6e37..292590dc8 100644 --- a/tool/quick_start/find_vstudio.py +++ b/tool/quick_start/find_vstudio.py @@ -106,7 +106,7 @@ def ProcessYearPath(yearVersion, yearPath): FoundVisualStudio += [ { "Name": "Visual Studio " + str(VSMajor[yearVersion]) + " " + yearVersion, "DisplayName": "Visual Studio " + yearVersion + " " + edition, "Path": editionPath, "Version": VSMajor[yearVersion], "Toolset": toolchain, "HasMFC": hasMFC } ] # v140 Toolset if os.path.isfile("C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat"): - FoundVisualStudio += [ { "Name": "Visual Studio " + str(VSMajor[yearVersion]) + " " + yearVersion, "DisplayName": "Visual Studio " + yearVersion + " " + edition, "Path": editionPath, "Version": VSMajor[yearVersion], "Toolset": "v140", "HasMFC": os.path.isfile("C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\atlmfc\\include\\afx.h") } ] + FoundVisualStudio += [ { "Name": "Visual Studio " + str(VSMajor[yearVersion]) + " " + yearVersion, "DisplayName": "Visual Studio " + yearVersion + " " + edition, "Path": "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0", "Version": VSMajor[yearVersion], "Toolset": "v140", "HasMFC": os.path.isfile("C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\atlmfc\\include\\afx.h") } ] for yearVersion in os.listdir("C:\\Program Files (x86)\\Microsoft Visual Studio"): if yearVersion.startswith("."): continue