diff options
author | Ken Martin <ken.martin@kitware.com> | 2008-03-06 21:03:48 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2008-03-06 21:03:48 (GMT) |
commit | 3518c08a8d4503d4de965e140af5a7f9647f2c12 (patch) | |
tree | 4fd8cc501f67e17abd5f2b3ee25687807a07bb91 /Source/cmListFileCache.cxx | |
parent | afd8448d0d5a7c351a223c5f01bef92dd3f0baf6 (diff) | |
download | CMake-3518c08a8d4503d4de965e140af5a7f9647f2c12.zip CMake-3518c08a8d4503d4de965e140af5a7f9647f2c12.tar.gz CMake-3518c08a8d4503d4de965e140af5a7f9647f2c12.tar.bz2 |
BUG: keep CMAKE_BACKWARDS_COMP as internal
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r-- | Source/cmListFileCache.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index a5d927a..d49797a 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -164,6 +164,19 @@ bool cmListFile::ParseFile(const char* filename, return false; } } + else + { + // add in the old CMAKE_BACKWARDS_COMPATIBILITY var for old CMake compatibility + if (!mf->GetCacheManager()-> + GetCacheValue("CMAKE_BACKWARDS_COMPATIBILITY")) + { + mf->AddCacheDefinition + ("CMAKE_BACKWARDS_COMPATIBILITY", "2.5", + "For backwards compatibility, what version of CMake commands and " + "syntax should this version of CMake try to support.", + cmCacheManager::INTERNAL); + } + } } if(topLevel) |