diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-25 11:59:39 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-27 06:44:24 (GMT) |
commit | 79c11d23405d3894a254a8c03df5ead32464b109 (patch) | |
tree | 05474b0a84f58ef0aba6ca8dc4afdca4aafce8f4 /Source/cmLocalXCodeGenerator.cxx | |
parent | 9b244cc0ecff0cde22b71b7097a3d84c018c6044 (diff) | |
download | CMake-79c11d23405d3894a254a8c03df5ead32464b109.zip CMake-79c11d23405d3894a254a8c03df5ead32464b109.tar.gz CMake-79c11d23405d3894a254a8c03df5ead32464b109.tar.bz2 |
Xcode: Port away from GetGeneratorTarget
Diffstat (limited to 'Source/cmLocalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmLocalXCodeGenerator.cxx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Source/cmLocalXCodeGenerator.cxx b/Source/cmLocalXCodeGenerator.cxx index 3b430d2..aec2603 100644 --- a/Source/cmLocalXCodeGenerator.cxx +++ b/Source/cmLocalXCodeGenerator.cxx @@ -51,13 +51,11 @@ void cmLocalXCodeGenerator::Generate() { cmLocalGenerator::Generate(); - cmTargets& targets = this->Makefile->GetTargets(); - for(cmTargets::iterator iter = targets.begin(); + std::vector<cmGeneratorTarget*> targets = this->GetGeneratorTargets(); + for(std::vector<cmGeneratorTarget*>::iterator iter = targets.begin(); iter != targets.end(); ++iter) { - cmTarget* t = &iter->second; - cmGeneratorTarget* gt = this->GlobalGenerator->GetGeneratorTarget(t); - gt->HasMacOSXRpathInstallNameDir(""); + (*iter)->HasMacOSXRpathInstallNameDir(""); } } @@ -66,13 +64,11 @@ void cmLocalXCodeGenerator::GenerateInstallRules() { cmLocalGenerator::GenerateInstallRules(); - cmTargets& targets = this->Makefile->GetTargets(); - for(cmTargets::iterator iter = targets.begin(); + std::vector<cmGeneratorTarget*> targets = this->GetGeneratorTargets(); + for(std::vector<cmGeneratorTarget*>::iterator iter = targets.begin(); iter != targets.end(); ++iter) { - cmTarget* t = &iter->second; - cmGeneratorTarget* gt = this->GlobalGenerator->GetGeneratorTarget(t); - gt->HasMacOSXRpathInstallNameDir(""); + (*iter)->HasMacOSXRpathInstallNameDir(""); } } |