From 3518c08a8d4503d4de965e140af5a7f9647f2c12 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 6 Mar 2008 16:03:48 -0500 Subject: [PATCH] BUG: keep CMAKE_BACKWARDS_COMP as internal --- Source/cmListFileCache.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index a5d927a18..d49797a4e 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)