cmGeneratorTarget: Port Utility items to cmGeneratorTarget.

This commit is contained in:
Stephen Kelly 2015-10-16 19:19:49 +02:00
parent d233030f5b
commit 50fb2ad646
1 changed files with 2 additions and 3 deletions

View File

@ -774,9 +774,8 @@ std::set<cmLinkItem> const& cmGeneratorTarget::GetUtilityItems() const
for(std::set<std::string>::const_iterator i = utilities.begin();
i != utilities.end(); ++i)
{
cmTarget* tgt = this->Makefile->FindTargetToUse(*i);
cmGeneratorTarget* gt = tgt ? this->GlobalGenerator
->GetGeneratorTarget(tgt) : 0;
cmGeneratorTarget* gt =
this->LocalGenerator->FindGeneratorTargetToUse(*i);
this->UtilityItems.insert(cmLinkItem(*i, gt));
}
}