diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-12-02 03:20:35 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-12-02 18:01:13 (GMT) |
commit | 9c662246684bf649899228d02705440fa4480558 (patch) | |
tree | c6aaff516e64d35372e27c2df36274ca8e2a78e9 | |
parent | 9123a0991f76a88227dc11d26014047657ff35c0 (diff) | |
download | CMake-9c662246684bf649899228d02705440fa4480558.zip CMake-9c662246684bf649899228d02705440fa4480558.tar.gz CMake-9c662246684bf649899228d02705440fa4480558.tar.bz2 |
cmNinjaTargetGenerator: skip setting `depfile` for `none` scantypes
The `clang` mechanism does not support `depfile` discovered dependencies
at the moment.
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index dd4b6a6..3912632 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -543,6 +543,9 @@ cmNinjaRule GetScanRule( if (deptype == "msvc"_s) { rule.DepType = deptype; rule.DepFile.clear(); + } else if (deptype == "none"_s) { + rule.DepType.clear(); // no deps= for multiple outputs + rule.DepFile.clear(); } else { rule.DepType.clear(); // no deps= for multiple outputs rule.DepFile = "$DEP_FILE"; |