summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaUtilityTargetGenerator.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-09-02 14:15:24 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-09-02 16:59:59 (GMT)
commitf1199bdc96d255fbd10772b64d6ff1c64490bb57 (patch)
tree1eb767fdca5ad231057d5253ad2099204b447c7f /Source/cmNinjaUtilityTargetGenerator.cxx
parent657047cd24a4452e755522c84700ca490a076373 (diff)
downloadCMake-f1199bdc96d255fbd10772b64d6ff1c64490bb57.zip
CMake-f1199bdc96d255fbd10772b64d6ff1c64490bb57.tar.gz
CMake-f1199bdc96d255fbd10772b64d6ff1c64490bb57.tar.bz2
Ninja Multi-Config: Fix cleaning of utility targets with commands
Diffstat (limited to 'Source/cmNinjaUtilityTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaUtilityTargetGenerator.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmNinjaUtilityTargetGenerator.cxx b/Source/cmNinjaUtilityTargetGenerator.cxx
index 8d863c3..c964bc1 100644
--- a/Source/cmNinjaUtilityTargetGenerator.cxx
+++ b/Source/cmNinjaUtilityTargetGenerator.cxx
@@ -100,6 +100,8 @@ void cmNinjaUtilityTargetGenerator::Generate(const std::string& config)
if (genTarget->Target->GetType() != cmStateEnums::GLOBAL_TARGET) {
lg->AppendTargetOutputs(genTarget, gg->GetByproductsForCleanTarget(),
config);
+ std::copy(util_outputs.begin(), util_outputs.end(),
+ std::back_inserter(gg->GetByproductsForCleanTarget()));
}
lg->AppendTargetDepends(genTarget, deps, config, config);