mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 20:29:49 -05:00
Ninja: Add support for ADDITIONAL_CLEAN_FILES in custom targets
This enables the support for `ADDITIONAL_CLEAN_FILES` in custom targets using the ninja generator. Fixes: #19641
This commit is contained in:
committed by
Brad King
parent
40bbe50e23
commit
3ed8cffe73
@@ -85,6 +85,7 @@ void cmNinjaNormalTargetGenerator::Generate()
|
|||||||
this->WriteLinkStatement();
|
this->WriteLinkStatement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Find ADDITIONAL_CLEAN_FILES
|
||||||
this->AdditionalCleanFiles();
|
this->AdditionalCleanFiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -135,6 +135,9 @@ void cmNinjaUtilityTargetGenerator::Generate()
|
|||||||
gg->WriteBuild(this->GetBuildFileStream(), phonyBuild);
|
gg->WriteBuild(this->GetBuildFileStream(), phonyBuild);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Find ADDITIONAL_CLEAN_FILES
|
||||||
|
this->AdditionalCleanFiles();
|
||||||
|
|
||||||
// Add an alias for the logical target name regardless of what directory
|
// Add an alias for the logical target name regardless of what directory
|
||||||
// contains it. Skip this for GLOBAL_TARGET because they are meant to
|
// contains it. Skip this for GLOBAL_TARGET because they are meant to
|
||||||
// be per-directory and have one at the top-level anyway.
|
// be per-directory and have one at the top-level anyway.
|
||||||
|
|||||||
Reference in New Issue
Block a user