cmNinjaTargetGenerator: use a different depfile for preprocessing

If the compile rule also needs a depfile, the names now no longer
collide.
This commit is contained in:
Ben Boeckel
2019-03-12 15:25:03 -04:00
parent 414332ff57
commit 76e6e01c6c

View File

@@ -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.