From a09c545d3a518d771b66b59f92821af3d55d7d4b Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 15 Sep 2015 20:36:02 +0200 Subject: Xcode: Extract a AddExtraIDETargets method. --- Source/cmGlobalXCodeGenerator.cxx | 6 +++++- Source/cmGlobalXCodeGenerator.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 33babec..e209b64 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -383,7 +383,12 @@ bool cmGlobalXCodeGenerator::Compute() { return false; } + this->AddExtraIDETargets(); + return true; +} +void cmGlobalXCodeGenerator::AddExtraIDETargets() +{ std::map >::iterator it; // make sure extra targets are added before calling // the parent generate which will call trace depends @@ -394,7 +399,6 @@ bool cmGlobalXCodeGenerator::Compute() // add ALL_BUILD, INSTALL, etc this->AddExtraTargets(root, it->second); } - return true; } void cmGlobalXCodeGenerator::Generate() diff --git a/Source/cmGlobalXCodeGenerator.h b/Source/cmGlobalXCodeGenerator.h index 102c036..413a7bc 100644 --- a/Source/cmGlobalXCodeGenerator.h +++ b/Source/cmGlobalXCodeGenerator.h @@ -88,6 +88,7 @@ public: void AppendFlag(std::string& flags, std::string const& flag); protected: virtual bool Compute(); + void AddExtraIDETargets(); virtual void Generate(); private: cmXCodeObject* CreateOrGetPBXGroup(cmTarget& cmtarget, -- cgit v0.12