summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-09-01 21:40:18 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-09-02 16:59:59 (GMT)
commita9fd3a107dc4bc34b8d2822b9153ee0ab9e02ea8 (patch)
tree9ca32f0f90fd36c8d3328b64278dcb390cf79bb0 /Source
parentf1199bdc96d255fbd10772b64d6ff1c64490bb57 (diff)
downloadCMake-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.cxx3
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;
}