فهرست منبع

cmScanDepFormat: Accept P1689r4 files with version 1

VS 2022's `cl` 19.30 has a `-scanDependencies` option that produces the
P1689r4 format.  It reports the "version" field with value "1".
Brad King 4 سال پیش
والد
کامیت
9ed1d7bee6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Source/cmScanDepFormat.cxx

+ 1 - 1
Source/cmScanDepFormat.cxx

@@ -97,7 +97,7 @@ bool cmScanDepFormat_P1689_Parse(std::string const& arg_pp,
   }
   }
 
 
   Json::Value const& version = ppi["version"];
   Json::Value const& version = ppi["version"];
-  if (version.asUInt() != 0) {
+  if (version.asUInt() > 1) {
     cmSystemTools::Error(cmStrCat("-E cmake_ninja_dyndep failed to parse ",
     cmSystemTools::Error(cmStrCat("-E cmake_ninja_dyndep failed to parse ",
                                   arg_pp, ": version ", version.asString()));
                                   arg_pp, ": version ", version.asString()));
     return false;
     return false;