فهرست منبع

BUG: keep CMAKE_BACKWARDS_COMP as internal

Ken Martin 18 سال پیش
والد
کامیت
3518c08a8d
1فایلهای تغییر یافته به همراه13 افزوده شده و 0 حذف شده
  1. 13 0
      Source/cmListFileCache.cxx

+ 13 - 0
Source/cmListFileCache.cxx

@@ -164,6 +164,19 @@ bool cmListFile::ParseFile(const char* filename,
           return false;
           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)
   if(topLevel)