summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-12-04 15:44:44 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-12-04 15:44:44 (GMT)
commit3a211819410ba0433cf8b713e894683b2f612345 (patch)
tree9bc61acbe43fa156e70ca55ce8717d519a9cf712
parent1367dff3fadd4c69d3ffab50db92968294f91659 (diff)
downloadCMake-3a211819410ba0433cf8b713e894683b2f612345.zip
CMake-3a211819410ba0433cf8b713e894683b2f612345.tar.gz
CMake-3a211819410ba0433cf8b713e894683b2f612345.tar.bz2
added CMAKE_BACKWARDS_COMPATIBILITY entry
-rw-r--r--Source/cmake.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index c33de4f..3c705b1 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -994,7 +994,23 @@ int cmake::LoadCache()
if(!this->AddCMakePaths(m_CMakeCommand.c_str()))
{
return -3;
+ }
+
+ // 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);
+ cmCacheManager::CacheIterator it =
+ this->m_CacheManager->GetCacheIterator("CMAKE_BACKWARDS_COMPATIBILITY");
+ it.SetProperty("ADVANCED", "1");
}
+
return 0;
}