summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2017-06-30 00:04:43 +0800
committerruki <[email protected]>2017-06-30 00:04:43 +0800
commit106ee49f7882c87c6b959fa8afccd09e29e7e99b (patch)
tree4123741bf287e9075e7cc42ed70558004488d2ff /xmake/modules
parent13c3dfc2bff9ddadcddfadf64ce793b30dce8c9a (diff)
get vstudio sdk version
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/detect/sdks/find_vstudio.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua
index 1a06d1e90..fb09d915d 100644
--- a/xmake/modules/detect/sdks/find_vstudio.lua
+++ b/xmake/modules/detect/sdks/find_vstudio.lua
@@ -64,6 +64,12 @@ function _load_vcvarsall(vcvarsall, arch)
end
end
+ -- get sdk version
+ local include = variables["include"]
+ if include then
+ variables["sdkver"] = include:match("Windows Kits\\%d+\\include\\(%d+%.%d+%.%d+%.%d+)\\")
+ end
+
-- ok
return variables
end