diff options
| -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"), |
