1
0
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:
Sebastian Holtermann
2019-08-26 11:47:27 +02:00
committed by Brad King
parent 40bbe50e23
commit 3ed8cffe73
2 changed files with 4 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ void cmNinjaNormalTargetGenerator::Generate()
this->WriteLinkStatement();
}
// Find ADDITIONAL_CLEAN_FILES
this->AdditionalCleanFiles();
}

View File

@@ -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.