summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-16 17:19:49 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-16 18:17:32 (GMT)
commit50fb2ad6463c500fde44c000c777aa3ac1cffc7e (patch)
tree795b556a4a5b8ff959558ca35b9ee2f03d2cddc0 /Source/cmGeneratorTarget.cxx
parentd233030f5bcfe2509b82433f7df6383cd301e34e (diff)
downloadCMake-50fb2ad6463c500fde44c000c777aa3ac1cffc7e.zip
CMake-50fb2ad6463c500fde44c000c777aa3ac1cffc7e.tar.gz
CMake-50fb2ad6463c500fde44c000c777aa3ac1cffc7e.tar.bz2
cmGeneratorTarget: Port Utility items to cmGeneratorTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 52ae310..d3b5d10 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -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));
}
}