|
|
@@ -1899,6 +1899,19 @@ int cmake::ActualConfigure()
|
|
|
cmCacheManager::INTERNAL);
|
|
|
}
|
|
|
|
|
|
+ // set the default BACKWARDS compatibility to the current version
|
|
|
+ if(!this->CacheManager->GetCacheValue("CMAKE_BACKWARDS_COMPATIBILITY"))
|
|
|
+ {
|
|
|
+ char ver[256];
|
|
|
+ sprintf(ver,"%i.%i",cmVersion::GetMajorVersion(),
|
|
|
+ cmVersion::GetMinorVersion());
|
|
|
+ this->CacheManager->AddCacheEntry
|
|
|
+ ("CMAKE_BACKWARDS_COMPATIBILITY",ver,
|
|
|
+ "For backwards compatibility, what version of CMake commands and "
|
|
|
+ "syntax should this version of CMake allow.",
|
|
|
+ cmCacheManager::INTERNAL);
|
|
|
+ }
|
|
|
+
|
|
|
// no generator specified on the command line
|
|
|
if(!this->GlobalGenerator)
|
|
|
{
|
|
|
@@ -2380,6 +2393,19 @@ int cmake::LoadCache()
|
|
|
return -3;
|
|
|
}
|
|
|
|
|
|
+ // set the default BACKWARDS compatibility to the current version
|
|
|
+ if(!this->CacheManager->GetCacheValue("CMAKE_BACKWARDS_COMPATIBILITY"))
|
|
|
+ {
|
|
|
+ char ver[256];
|
|
|
+ sprintf(ver,"%i.%i",cmVersion::GetMajorVersion(),
|
|
|
+ cmVersion::GetMinorVersion());
|
|
|
+ this->CacheManager->AddCacheEntry
|
|
|
+ ("CMAKE_BACKWARDS_COMPATIBILITY",ver,
|
|
|
+ "For backwards compatibility, what version of CMake commands and "
|
|
|
+ "syntax should this version of CMake allow.",
|
|
|
+ cmCacheManager::INTERNAL);
|
|
|
+ }
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|