mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-04 22:29:40 -06: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:
@@ -1113,7 +1113,7 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatement(
|
|||||||
|
|
||||||
// Explicit preprocessing always uses a depfile.
|
// Explicit preprocessing always uses a depfile.
|
||||||
ppVars["DEP_FILE"] = this->GetLocalGenerator()->ConvertToOutputFormat(
|
ppVars["DEP_FILE"] = this->GetLocalGenerator()->ConvertToOutputFormat(
|
||||||
objectFileName + ".d", cmOutputConverter::SHELL);
|
objectFileName + ".pp.d", cmOutputConverter::SHELL);
|
||||||
if (compilePP) {
|
if (compilePP) {
|
||||||
// The actual compilation does not need a depfile because it
|
// The actual compilation does not need a depfile because it
|
||||||
// depends on the already-preprocessed source.
|
// depends on the already-preprocessed source.
|
||||||
|
|||||||
Reference in New Issue
Block a user