summaryrefslogtreecommitdiffstats
path: root/Source/cmScanDepFormat.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-11-03 14:50:54 (GMT)
committerBrad King <brad.king@kitware.com>2021-11-03 14:50:54 (GMT)
commit9ed1d7bee6f36b489fa3bb5e77add26ea6119f61 (patch)
treeb9e500f1973de9c7a35f868c35cd84ea9cd819ef /Source/cmScanDepFormat.cxx
parentf65cebf51a2cf3af2017fd9b03c685c77da00c74 (diff)
downloadCMake-9ed1d7bee6f36b489fa3bb5e77add26ea6119f61.zip
CMake-9ed1d7bee6f36b489fa3bb5e77add26ea6119f61.tar.gz
CMake-9ed1d7bee6f36b489fa3bb5e77add26ea6119f61.tar.bz2
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".
Diffstat (limited to 'Source/cmScanDepFormat.cxx')
-rw-r--r--Source/cmScanDepFormat.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmScanDepFormat.cxx b/Source/cmScanDepFormat.cxx
index 6fcbce5..82a374a 100644
--- a/Source/cmScanDepFormat.cxx
+++ b/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;