summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-05-11 23:52:23 +0800
committerruki <[email protected]>2024-05-11 23:52:55 +0800
commit7bb2f2bd64d17d2f2c6759b278517c4639241d2a (patch)
tree991f61ac881496d9389cf48f2a0bd0df4be82594
parentabd7b7fa4544bfe43fad829389e5e602e253631e (diff)
improve to find_vstudio
-rw-r--r--xmake/modules/detect/sdks/find_vstudio.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua
index f25f582cc..31180e13b 100644
--- a/xmake/modules/detect/sdks/find_vstudio.lua
+++ b/xmake/modules/detect/sdks/find_vstudio.lua
@@ -440,6 +440,9 @@ function main(opt)
if opt.vcvars_ver then
key = key .. opt.vcvars_ver
end
+ if opt.sdkver then
+ key = key .. opt.sdkver
+ end
-- attempt to get it from the global cache first
local vstudio = global_detectcache:get2(key, "msvc")