Xcode: Port away from GetGeneratorTarget

This commit is contained in:
Stephen Kelly 2015-10-25 12:59:39 +01:00
parent 9b244cc0ec
commit 79c11d2340
1 changed files with 6 additions and 10 deletions

View File

@ -51,13 +51,11 @@ void cmLocalXCodeGenerator::Generate()
{ {
cmLocalGenerator::Generate(); cmLocalGenerator::Generate();
cmTargets& targets = this->Makefile->GetTargets(); std::vector<cmGeneratorTarget*> targets = this->GetGeneratorTargets();
for(cmTargets::iterator iter = targets.begin(); for(std::vector<cmGeneratorTarget*>::iterator iter = targets.begin();
iter != targets.end(); ++iter) iter != targets.end(); ++iter)
{ {
cmTarget* t = &iter->second; (*iter)->HasMacOSXRpathInstallNameDir("");
cmGeneratorTarget* gt = this->GlobalGenerator->GetGeneratorTarget(t);
gt->HasMacOSXRpathInstallNameDir("");
} }
} }
@ -66,13 +64,11 @@ void cmLocalXCodeGenerator::GenerateInstallRules()
{ {
cmLocalGenerator::GenerateInstallRules(); cmLocalGenerator::GenerateInstallRules();
cmTargets& targets = this->Makefile->GetTargets(); std::vector<cmGeneratorTarget*> targets = this->GetGeneratorTargets();
for(cmTargets::iterator iter = targets.begin(); for(std::vector<cmGeneratorTarget*>::iterator iter = targets.begin();
iter != targets.end(); ++iter) iter != targets.end(); ++iter)
{ {
cmTarget* t = &iter->second; (*iter)->HasMacOSXRpathInstallNameDir("");
cmGeneratorTarget* gt = this->GlobalGenerator->GetGeneratorTarget(t);
gt->HasMacOSXRpathInstallNameDir("");
} }
} }