Browse Source

cmNinjaTargetGenerator: use a different depfile for preprocessing

If the compile rule also needs a depfile, the names now no longer
collide.
Ben Boeckel 6 years ago
parent
commit
76e6e01c6c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmNinjaTargetGenerator.cxx

+ 1 - 1
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.