Skip to content

Commit

Permalink
make pattern more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
jinke18 committed Jul 30, 2024
1 parent d40756d commit ad6f760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/modules/detect/sdks/find_vstudio.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function _load_vcvarsall(vcvarsall, vsver, arch, opt)
-- then parse it from `WindowsSdkBinPath`, such as: `C:\\Program Files (x86)\\Windows Kits\\8.1\\bin`
local WindowsSdkBinPath = variables["WindowsSdkBinPath"]
if WindowsSdkBinPath then
WindowsSDKVersion = string.match(WindowsSdkBinPath, "\\(%d+%.?%d*)\\bin")
WindowsSDKVersion = string.match(WindowsSdkBinPath, "\\(%d+%.%d+)\\bin$")
if WindowsSDKVersion then
variables["WindowsSDKVersion"] = WindowsSDKVersion
end
Expand Down

0 comments on commit ad6f760

Please sign in to comment.