summaryrefslogtreecommitdiff
path: root/xmake/core/project/cache.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-06-22 21:55:55 +0800
committerruki <[email protected]>2016-06-22 21:55:55 +0800
commit920ba6e7d186b71d48efefe130e99ebc398beca4 (patch)
tree8904606b7548ca7c4b5c418fe428392ba5acc9de /xmake/core/project/cache.lua
parent17c6d2e9cb797780e8d89a729d23fa3a52f5384f (diff)
fix auto-config bug
Diffstat (limited to 'xmake/core/project/cache.lua')
-rw-r--r--xmake/core/project/cache.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/project/cache.lua b/xmake/core/project/cache.lua
index 1a81ee4dc..ce47fa977 100644
--- a/xmake/core/project/cache.lua
+++ b/xmake/core/project/cache.lua
@@ -105,6 +105,9 @@ end
-- flush to cache file
function cache:flush()
+ -- flush the version
+ self._CACHEDATA.__version = xmake._VERSION_SHORT
+
-- save to file
return io.save(self._CACHEPATH, self._CACHEDATA)
end