Merge topic 'ninja_additional_clean_files_custom_target'

d040f3f1ee Tests: Extend MakeClean test to test various target types
3ed8cffe73 Ninja: Add support for ADDITIONAL_CLEAN_FILES in custom targets

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3739
This commit is contained in:
Brad King
2019-08-27 14:15:56 +00:00
committed by Kitware Robot
3 changed files with 51 additions and 35 deletions

View File

@@ -136,6 +136,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.