summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-02-24 16:02:23 (GMT)
committerBrad King <brad.king@kitware.com>2003-02-24 16:02:23 (GMT)
commitab761edaef03ede2e017ea2e7b76f4342fe444a1 (patch)
tree70b4b307e2ddc82953252d984a4deefabea8107d /Source
parent0e516f2c85f2016311ad3705b0b4916d52823e5b (diff)
downloadCMake-ab761edaef03ede2e017ea2e7b76f4342fe444a1.zip
CMake-ab761edaef03ede2e017ea2e7b76f4342fe444a1.tar.gz
CMake-ab761edaef03ede2e017ea2e7b76f4342fe444a1.tar.bz2
BUG: Fixed crash when CMAKE_BACKWARDS_COMPATIBILITY is deleted between configures.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 0dad7cf..cd0ab2f 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -781,6 +781,18 @@ int cmake::Configure()
cmCacheManager::INTERNAL);
}
+ // set the default BACKWARDS compatibility to the current version
+ if(!m_CacheManager->GetCacheValue("CMAKE_BACKWARDS_COMPATIBILITY"))
+ {
+ char ver[256];
+ sprintf(ver,"%i.%i",cmMakefile::GetMajorVersion(),
+ cmMakefile::GetMinorVersion());
+ this->m_CacheManager->AddCacheEntry
+ ("CMAKE_BACKWARDS_COMPATIBILITY",ver,
+ "For backwards compatibility, what version of CMake commands and syntax should this version of CMake allow.",
+ cmCacheManager::STRING);
+ }
+
// no generator specified on the command line
if(!m_GlobalGenerator)
{