Xcode: Extract a AddExtraIDETargets method.

This commit is contained in:
Stephen Kelly 2015-09-15 20:36:02 +02:00
parent f2791da132
commit a09c545d3a
2 changed files with 6 additions and 1 deletions

View File

@ -383,7 +383,12 @@ bool cmGlobalXCodeGenerator::Compute()
{ {
return false; return false;
} }
this->AddExtraIDETargets();
return true;
}
void cmGlobalXCodeGenerator::AddExtraIDETargets()
{
std::map<std::string, std::vector<cmLocalGenerator*> >::iterator it; std::map<std::string, std::vector<cmLocalGenerator*> >::iterator it;
// make sure extra targets are added before calling // make sure extra targets are added before calling
// the parent generate which will call trace depends // the parent generate which will call trace depends
@ -394,7 +399,6 @@ bool cmGlobalXCodeGenerator::Compute()
// add ALL_BUILD, INSTALL, etc // add ALL_BUILD, INSTALL, etc
this->AddExtraTargets(root, it->second); this->AddExtraTargets(root, it->second);
} }
return true;
} }
void cmGlobalXCodeGenerator::Generate() void cmGlobalXCodeGenerator::Generate()

View File

@ -88,6 +88,7 @@ public:
void AppendFlag(std::string& flags, std::string const& flag); void AppendFlag(std::string& flags, std::string const& flag);
protected: protected:
virtual bool Compute(); virtual bool Compute();
void AddExtraIDETargets();
virtual void Generate(); virtual void Generate();
private: private:
cmXCodeObject* CreateOrGetPBXGroup(cmTarget& cmtarget, cmXCodeObject* CreateOrGetPBXGroup(cmTarget& cmtarget,