BUG: Fixed crash when CMAKE_BACKWARDS_COMPATIBILITY is deleted between configures.
This commit is contained in:
parent
0e516f2c85
commit
ab761edaef
@ -781,6 +781,18 @@ int cmake::Configure()
|
|||||||
cmCacheManager::INTERNAL);
|
cmCacheManager::INTERNAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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);
|
||||||
|
}
|
||||||
|
|
||||||
// no generator specified on the command line
|
// no generator specified on the command line
|
||||||
if(!m_GlobalGenerator)
|
if(!m_GlobalGenerator)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user