cmComputeLinkDepends: Simplify CheckWrongConfigItem implementation
Combine the outer two if() conditions into a single one with &&.
This commit is contained in:
parent
e838e0a977
commit
962f2c3529
|
@ -999,12 +999,9 @@ void cmComputeLinkDepends::CheckWrongConfigItem(int depender_index,
|
|||
// For CMake 2.4 bug-compatibility we need to consider the output
|
||||
// directories of targets linked in another configuration as link
|
||||
// directories.
|
||||
if(cmTarget const* tgt
|
||||
= this->FindTargetToLink(depender_index, item))
|
||||
{
|
||||
if(!tgt->IsImported())
|
||||
cmTarget const* tgt = this->FindTargetToLink(depender_index, item);
|
||||
if(tgt && !tgt->IsImported())
|
||||
{
|
||||
this->OldWrongConfigItems.insert(tgt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue