diff options
| -rw-r--r-- | xmake/modules/detect/sdks/find_qt.lua | 4 | ||||
| -rw-r--r-- | xmake/modules/detect/sdks/find_wdk.lua | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/detect/sdks/find_qt.lua b/xmake/modules/detect/sdks/find_qt.lua index 885198575..6ab39b254 100644 --- a/xmake/modules/detect/sdks/find_qt.lua +++ b/xmake/modules/detect/sdks/find_qt.lua @@ -153,9 +153,9 @@ function main(sdkdir, opt) opt = opt or {} -- attempt to load cache first - local key = "detect.sdks.find_qt." .. (sdkdir or "") + local key = "detect.sdks.find_qt" local cacheinfo = cache.load(key) - if not opt.force and cacheinfo.qt then + if not opt.force and cacheinfo.qt and cacheinfo.qt.sdkdir and os.isdir(cacheinfo.qt.sdkdir) then return cacheinfo.qt end diff --git a/xmake/modules/detect/sdks/find_wdk.lua b/xmake/modules/detect/sdks/find_wdk.lua index 513be1f88..e19befd02 100644 --- a/xmake/modules/detect/sdks/find_wdk.lua +++ b/xmake/modules/detect/sdks/find_wdk.lua @@ -160,9 +160,9 @@ function main(sdkdir, opt) opt = opt or {} -- attempt to load cache first - local key = "detect.sdks.find_wdk." .. (sdkdir or "") + local key = "detect.sdks.find_wdk" local cacheinfo = cache.load(key) - if not opt.force and cacheinfo.wdk then + if not opt.force and cacheinfo.wdk and cacheinfo.wdk.sdkdir and os.isdir(cacheinfo.wdk.sdkdir) then return cacheinfo.wdk end |
