summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2018-10-20 00:00:37 +0800
committerruki <[email protected]>2018-10-20 00:00:37 +0800
commita99a556f6ffe6ec70bee3c3444313198e93c32a0 (patch)
treeb1a1361b3f2e34b49c304ef1baf328d0b0c23299
parentfc99f51625474b0f841cc5ce62c2cb6b73dd9911 (diff)
fix uses vswhere to find_vstudio
-rw-r--r--xmake/modules/detect/sdks/find_vstudio.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua
index 1a4643d9a..5d1689c36 100644
--- a/xmake/modules/detect/sdks/find_vstudio.lua
+++ b/xmake/modules/detect/sdks/find_vstudio.lua
@@ -216,10 +216,10 @@ function main()
-- ref: https://github.com/Microsoft/vswhere/blob/master/README.md @@ https://archive.is/mEmdu
local vswhere_VCAuxiliaryBuildDir = nil
if ((version + 0) >= 15) and vswhere then
- local vswhere_vrange = format("%s,%s)", version, (version+1))
- local result = os.iorunv(vswhere.program, {"-property", "installationpath", "-products", "Microsoft.VisualStudio.Product.BuildTools", "-version", vswhere_vrange})
+ local vswhere_vrange = format("%s,%s)", version, (version + 1))
+ local result = os.iorunv(vswhere.program, {"-property", "installationpath", "-version", vswhere_vrange})
if result then
- vswhere_VCAuxiliaryBuildDir = result:trim() .."\\VC\\Auxiliary\\Build"
+ vswhere_VCAuxiliaryBuildDir = path.join(result:trim(), "VC", "Auxiliary", "Build")
end
end