summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/detect/sdks/find_vcpkgdir.lua2
1 files changed, 1 insertions, 1 deletions
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