Browse Source

Merge topic 'msvc-cxx-modules-scanDependencies' into release-3.22

9ed1d7bee6 cmScanDepFormat: Accept P1689r4 files with version 1

Acked-by: Kitware Robot <[email protected]>
Acked-by: Ben Boeckel <[email protected]>
Merge-request: !6696
Brad King 4 years ago
parent
commit
6f995f3825
1 changed files with 1 additions and 1 deletions
  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"];
-  if (version.asUInt() != 0) {
+  if (version.asUInt() > 1) {
     cmSystemTools::Error(cmStrCat("-E cmake_ninja_dyndep failed to parse ",
                                   arg_pp, ": version ", version.asString()));
     return false;