diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-13 19:31:44 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-13 19:31:44 (GMT) |
commit | 7b54b22ccd6a681cf50218d4beec325a5a8ddf4e (patch) | |
tree | 6dd9b376e10e5db27ed7a2001d2374bb04ed3a6b /Source/cmCacheManager.cxx | |
parent | 4a9e7907173aae4b1b9ea598e351102932d551af (diff) | |
download | CMake-7b54b22ccd6a681cf50218d4beec325a5a8ddf4e.zip CMake-7b54b22ccd6a681cf50218d4beec325a5a8ddf4e.tar.gz CMake-7b54b22ccd6a681cf50218d4beec325a5a8ddf4e.tar.bz2 |
ENH: force a global generate if the cache version does not match the running cmake
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index ad80383..81762a1 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -279,6 +279,10 @@ bool cmCacheManager::SaveCache(const char* path) "Major version of cmake used to create the " "current loaded cache", cmCacheManager::INTERNAL); + this->AddCacheEntry("CMAKE_CACHE_RELEASE_VERSION", cmMakefile::GetReleaseVersion(), + "Major version of cmake used to create the " + "current loaded cache", cmCacheManager::INTERNAL); + // Let us store the current working directory so that if somebody // Copies it, he will not be surprised std::string currentcwd = path; |