summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-13 19:31:44 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-13 19:31:44 (GMT)
commit7b54b22ccd6a681cf50218d4beec325a5a8ddf4e (patch)
tree6dd9b376e10e5db27ed7a2001d2374bb04ed3a6b /Source/cmCacheManager.cxx
parent4a9e7907173aae4b1b9ea598e351102932d551af (diff)
downloadCMake-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.cxx4
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;