diff options
| author | Roy Ivy III <[email protected]> | 2018-10-14 15:39:25 -0500 |
|---|---|---|
| committer | Roy Ivy III <[email protected]> | 2018-10-14 16:24:36 -0500 |
| commit | 92f1645146c22699f4e2b567451f87fb0dbf2fc6 (patch) | |
| tree | 63646ae6c0738823788b5deb7beedf42142f033f | |
| parent | fe0c464cfdf0498bf6df69a8965931255e94884b (diff) | |
fix `vswhere` detection in find_vswhere
| -rw-r--r-- | xmake/modules/detect/tools/find_vswhere.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_vswhere.lua b/xmake/modules/detect/tools/find_vswhere.lua index 73fbcfc92..c60a7f549 100644 --- a/xmake/modules/detect/tools/find_vswhere.lua +++ b/xmake/modules/detect/tools/find_vswhere.lua @@ -51,7 +51,9 @@ function main(opt) opt = opt or {} -- find program - opt.pathes = opt.pathes or + opt.check = "-?" + 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"), |
