mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 23:29:57 +00:00
cmComputeTargetDepends: Avoid computing with empty configuration
Fix `AddInterfaceDepends` to combine all configurations using the same approach that `CollectTargetDepends` does. Fixes: #16896
This commit is contained in:
parent
70c6557285
commit
5a913794d2
@ -294,9 +294,11 @@ void cmComputeTargetDepends::AddInterfaceDepends(
|
||||
}
|
||||
|
||||
if (dependee) {
|
||||
this->AddInterfaceDepends(depender_index, dependee, "", emitted);
|
||||
std::vector<std::string> configs;
|
||||
depender->Makefile->GetConfigurations(configs);
|
||||
if (configs.empty()) {
|
||||
configs.push_back("");
|
||||
}
|
||||
for (std::vector<std::string>::const_iterator it = configs.begin();
|
||||
it != configs.end(); ++it) {
|
||||
// A target should not depend on itself.
|
||||
|
Loading…
Reference in New Issue
Block a user