From 7bb2f2bd64d17d2f2c6759b278517c4639241d2a Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 11 May 2024 23:52:23 +0800 Subject: improve to find_vstudio --- xmake/modules/detect/sdks/find_vstudio.lua | 3 +++ 1 file changed, 3 insertions(+) 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") -- cgit v1.3.1