BUG: keep CMAKE_BACKWARDS_COMP as internal

This commit is contained in:
Ken Martin 2008-03-06 16:03:48 -05:00
parent afd8448d0d
commit 3518c08a8d
1 changed files with 13 additions and 0 deletions

View File

@ -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)