From 92f1645146c22699f4e2b567451f87fb0dbf2fc6 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sun, 14 Oct 2018 15:39:25 -0500 Subject: fix `vswhere` detection in find_vswhere --- xmake/modules/detect/tools/find_vswhere.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"), -- cgit v1.3.1