From 72cae54191c2eab872d660e8eae0a4e8b1803351 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 21 Sep 2018 00:38:07 +0800 Subject: fix find vcpkg cache --- xmake/modules/detect/sdks/find_vcpkgdir.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/detect/sdks/find_vcpkgdir.lua b/xmake/modules/detect/sdks/find_vcpkgdir.lua index 2c82ddf63..8990c4c70 100644 --- a/xmake/modules/detect/sdks/find_vcpkgdir.lua +++ b/xmake/modules/detect/sdks/find_vcpkgdir.lua @@ -78,7 +78,7 @@ function main(sdkdir, opt) -- attempt to load cache first local key = "detect.sdks.find_vcpkgdir." .. (sdkdir or "") local cacheinfo = cache.load(key) - if not opt.force and cacheinfo.vcpkg then + if not opt.force and cacheinfo.vcpkg ~= nil then return cacheinfo.vcpkg end -- cgit v1.3.1