From 5a913794d2931c3de00464cf261215a173f5ab8b Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 17 May 2017 13:19:15 -0400 Subject: cmComputeTargetDepends: Avoid computing with empty configuration Fix `AddInterfaceDepends` to combine all configurations using the same approach that `CollectTargetDepends` does. Fixes: #16896 --- Source/cmComputeTargetDepends.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/cmComputeTargetDepends.cxx b/Source/cmComputeTargetDepends.cxx index cfebda2..8ca8763 100644 --- a/Source/cmComputeTargetDepends.cxx +++ b/Source/cmComputeTargetDepends.cxx @@ -294,9 +294,11 @@ void cmComputeTargetDepends::AddInterfaceDepends( } if (dependee) { - this->AddInterfaceDepends(depender_index, dependee, "", emitted); std::vector configs; depender->Makefile->GetConfigurations(configs); + if (configs.empty()) { + configs.push_back(""); + } for (std::vector::const_iterator it = configs.begin(); it != configs.end(); ++it) { // A target should not depend on itself. -- cgit v0.12