diff options
| author | ruki <[email protected]> | 2018-05-22 00:41:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-05-21 22:10:16 +0800 |
| commit | 08834be448c3a4b77202bf6420ba8adad03cb238 (patch) | |
| tree | 5369ba2a92841fcb45744d38f3aa890181bfc26e /xmake/modules | |
| parent | bea60695d89f41068f8cd4424b7a5dfacc85173c (diff) | |
improve find wdk
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/detect/sdks/find_wdk.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/detect/sdks/find_wdk.lua b/xmake/modules/detect/sdks/find_wdk.lua index 327099be3..1bdda516d 100644 --- a/xmake/modules/detect/sdks/find_wdk.lua +++ b/xmake/modules/detect/sdks/find_wdk.lua @@ -32,6 +32,11 @@ import("core.project.config") -- find WDK directory function _find_sdkdir(sdkdir) + -- get sdk directory from the environment variables first + if not sdkdir then + sdkdir = os.getenv("WindowsSdkDir") + end + -- get sdk directory from vsvars if not sdkdir then local arch = config.arch() |
