|
@@ -896,21 +896,3 @@ bool cmCacheManager::CacheIterator::PropertyExists(
|
|
|
{
|
|
|
return this->GetProperty(prop)? true:false;
|
|
|
}
|
|
|
-
|
|
|
-//----------------------------------------------------------------------------
|
|
|
-bool cmCacheManager::NeedCacheCompatibility(int major, int minor)
|
|
|
-{
|
|
|
- // Compatibility is not needed if the cache version is zero because
|
|
|
- // the cache was created or modified by the user.
|
|
|
- if(this->CacheMajorVersion == 0)
|
|
|
- {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- // Compatibility is needed if the cache version is equal to or lower
|
|
|
- // than the given version.
|
|
|
- cmIML_INT_uint64_t actual_compat =
|
|
|
- CMake_VERSION_ENCODE(this->CacheMajorVersion, this->CacheMinorVersion, 0);
|
|
|
- return (actual_compat &&
|
|
|
- actual_compat <= CMake_VERSION_ENCODE(major, minor, 0));
|
|
|
-}
|