mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-17 15:32:10 +08: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();
|
||||
}
|
||||
|
||||
// Find ADDITIONAL_CLEAN_FILES
|
||||
this->AdditionalCleanFiles();
|
||||
}
|
||||
|
||||
|
@@ -135,6 +135,9 @@ void cmNinjaUtilityTargetGenerator::Generate()
|
||||
gg->WriteBuild(this->GetBuildFileStream(), phonyBuild);
|
||||
}
|
||||
|
||||
// Find ADDITIONAL_CLEAN_FILES
|
||||
this->AdditionalCleanFiles();
|
||||
|
||||
// Add an alias for the logical target name regardless of what directory
|
||||
// contains it. Skip this for GLOBAL_TARGET because they are meant to
|
||||
// be per-directory and have one at the top-level anyway.
|
||||
|
Reference in New Issue
Block a user