Merge topic 'fix-imported-target-depend-crash'
8ee9bbb
Do not crash when an imported target depends on a missing target
This commit is contained in:
commit
522c263d9d
|
@ -276,9 +276,11 @@ void cmComputeTargetDepends::AddTargetDepend(int depender_index,
|
|||
for(std::set<cmStdString>::const_iterator i = utils.begin();
|
||||
i != utils.end(); ++i)
|
||||
{
|
||||
cmTarget* transitive_dependee =
|
||||
dependee->GetMakefile()->FindTargetToUse(i->c_str());
|
||||
this->AddTargetDepend(depender_index, transitive_dependee, false);
|
||||
if(cmTarget* transitive_dependee =
|
||||
dependee->GetMakefile()->FindTargetToUse(i->c_str()))
|
||||
{
|
||||
this->AddTargetDepend(depender_index, transitive_dependee, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue