Commit 3518c08a authored by Ken Martin's avatar Ken Martin
Browse files

BUG: keep CMAKE_BACKWARDS_COMP as internal

parent afd8448d
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment