diff options
| author | ruki <[email protected]> | 2018-10-15 22:33:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-10-15 09:20:33 +0800 |
| commit | 68a27547cfdd4157162b6b536f4dc8c2c04786e8 (patch) | |
| tree | c4eb16fdc55f32b456193a809f1954b2983eb9ec /xmake/modules/detect/tools/find_vswhere.lua | |
| parent | dc71ced53ead25ab1757d746f49a1b0d2d32263b (diff) | |
improve find_vswhere and find_vstudio
Diffstat (limited to 'xmake/modules/detect/tools/find_vswhere.lua')
| -rw-r--r-- | xmake/modules/detect/tools/find_vswhere.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/detect/tools/find_vswhere.lua b/xmake/modules/detect/tools/find_vswhere.lua index c60a7f549..cbf5efc2d 100644 --- a/xmake/modules/detect/tools/find_vswhere.lua +++ b/xmake/modules/detect/tools/find_vswhere.lua @@ -55,8 +55,8 @@ function main(opt) opt.command = "-?" opt.pathes = opt.pathes or { - path.join(os.getenv("ProgramFiles(x86)"), "Microsoft Visual Studio", "Installer", "vswhere.exe"), - path.join(os.getenv("ProgramFiles"), "Microsoft Visual Studio", "Installer", "vswhere.exe"), + "$(env ProgramFiles%(x86%))\\Microsoft Visual Studio\\Installer", + "$(env ProgramFiles)\\Microsoft Visual Studio\\Installer" } local program = find_program(opt.program or "vswhere.exe", opt) |
