diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-09-02 10:15:24 -0400 |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-09-02 12:59:59 -0400 |
commit | f1199bdc96d255fbd10772b64d6ff1c64490bb57 (patch) | |
tree | 1eb767fdca5ad231057d5253ad2099204b447c7f /Source/cmNinjaUtilityTargetGenerator.cxx | |
parent | 657047cd24a4452e755522c84700ca490a076373 (diff) | |
download | cmake-f1199bdc96d255fbd10772b64d6ff1c64490bb57.tar.gz |
Ninja Multi-Config: Fix cleaning of utility targets with commands
Diffstat (limited to 'Source/cmNinjaUtilityTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaUtilityTargetGenerator.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmNinjaUtilityTargetGenerator.cxx b/Source/cmNinjaUtilityTargetGenerator.cxx index 8d863c34d1..c964bc14fd 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); |