mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
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:
1 parent
414332ff57
commit
76e6e01c6c
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user