From 40581640aac4b4ca2e7acb4254b07475c5cb9337 Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Tue, 8 Mar 2022 21:39:01 +0800 Subject: allow custom path to vswhere.exe --- xmake/modules/detect/tools/find_vswhere.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/xmake/modules/detect/tools/find_vswhere.lua b/xmake/modules/detect/tools/find_vswhere.lua index af52c5a94..75efb6b6e 100644 --- a/xmake/modules/detect/tools/find_vswhere.lua +++ b/xmake/modules/detect/tools/find_vswhere.lua @@ -51,6 +51,7 @@ function main(opt) opt.command = opt.command or "-?" opt.paths = opt.paths or { + "$(env VSINSTALLERDIR)", "$(env ProgramFiles%(x86%))\\Microsoft Visual Studio\\Installer", "$(env ProgramFiles)\\Microsoft Visual Studio\\Installer" } -- cgit v1.3.1