diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-09-01 21:40:18 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-09-02 16:59:59 (GMT) |
commit | a9fd3a107dc4bc34b8d2822b9153ee0ab9e02ea8 (patch) | |
tree | 9ca32f0f90fd36c8d3328b64278dcb390cf79bb0 /Source | |
parent | f1199bdc96d255fbd10772b64d6ff1c64490bb57 (diff) | |
download | CMake-a9fd3a107dc4bc34b8d2822b9153ee0ab9e02ea8.zip CMake-a9fd3a107dc4bc34b8d2822b9153ee0ab9e02ea8.tar.gz CMake-a9fd3a107dc4bc34b8d2822b9153ee0ab9e02ea8.tar.bz2 |
Ninja Multi-Config: Fix dependencies of utility targets
Fixes: #21118
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index fce1b9b..f11cd50 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -1170,7 +1170,8 @@ void cmGlobalNinjaGenerator::AppendTargetDependsClosure( for (auto const& dep_target : this->GetTargetDirectDepends(target)) { if (dep_target->GetType() == cmStateEnums::INTERFACE_LIBRARY || - (this->EnableCrossConfigBuild() && !dep_target.IsCross())) { + (target->GetType() != cmStateEnums::UTILITY && + this->EnableCrossConfigBuild() && !dep_target.IsCross())) { continue; } |