summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-03-12 19:25:03 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2019-03-12 19:37:07 (GMT)
commit76e6e01c6ca67f1449a2bcd1f434657de7f0240b (patch)
treeba212b1e3e84dcab41ac4782d7a9573c3b04ee09 /Source/cmNinjaTargetGenerator.cxx
parent414332ff57650862face4b23872062c4b4e018ca (diff)
downloadCMake-76e6e01c6ca67f1449a2bcd1f434657de7f0240b.zip
CMake-76e6e01c6ca67f1449a2bcd1f434657de7f0240b.tar.gz
CMake-76e6e01c6ca67f1449a2bcd1f434657de7f0240b.tar.bz2
cmNinjaTargetGenerator: use a different depfile for preprocessing
If the compile rule also needs a depfile, the names now no longer collide.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 8d11408..1ad26dd 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -1113,7 +1113,7 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatement(
// Explicit preprocessing always uses a depfile.
ppVars["DEP_FILE"] = this->GetLocalGenerator()->ConvertToOutputFormat(
- objectFileName + ".d", cmOutputConverter::SHELL);
+ objectFileName + ".pp.d", cmOutputConverter::SHELL);
if (compilePP) {
// The actual compilation does not need a depfile because it
// depends on the already-preprocessed source.