cmTarget: Simplify processILibs implementation
Combine the outer two if() conditions into a single one with &&. Scope inner lookup result inside its condition.
This commit is contained in:
parent
7b85938973
commit
e838e0a977
@ -6123,15 +6123,13 @@ void processILibs(const std::string& config,
|
|||||||
std::string const& name,
|
std::string const& name,
|
||||||
std::vector<cmTarget*>& tgts, std::set<cmTarget*>& emitted)
|
std::vector<cmTarget*>& tgts, std::set<cmTarget*>& emitted)
|
||||||
{
|
{
|
||||||
if (cmTarget* tgt = headTarget->GetMakefile()
|
cmTarget* tgt = headTarget->GetMakefile()
|
||||||
->FindTargetToUse(name))
|
->FindTargetToUse(name);
|
||||||
{
|
if (tgt && emitted.insert(tgt).second)
|
||||||
if (emitted.insert(tgt).second)
|
|
||||||
{
|
{
|
||||||
tgts.push_back(tgt);
|
tgts.push_back(tgt);
|
||||||
cmTarget::LinkInterface const* iface =
|
if(cmTarget::LinkInterface const* iface =
|
||||||
tgt->GetLinkInterfaceLibraries(config, headTarget);
|
tgt->GetLinkInterfaceLibraries(config, headTarget))
|
||||||
if (iface)
|
|
||||||
{
|
{
|
||||||
for(std::vector<std::string>::const_iterator
|
for(std::vector<std::string>::const_iterator
|
||||||
it = iface->Libraries.begin();
|
it = iface->Libraries.begin();
|
||||||
@ -6142,7 +6140,6 @@ void processILibs(const std::string& config,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmTarget::GetTransitiveTargetClosure(const std::string& config,
|
void cmTarget::GetTransitiveTargetClosure(const std::string& config,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user