summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-22 19:01:05 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-22 19:05:36 (GMT)
commitf5c0efdbe4d67a6f262dd670923674b003af1726 (patch)
tree0e995e4ac7421e0bbfb764409fd2ef1c349f102a /Source/cmGlobalXCodeGenerator.h
parent5c38fc1628b66ed405d66848e64f17834079d846 (diff)
downloadCMake-f5c0efdbe4d67a6f262dd670923674b003af1726.zip
CMake-f5c0efdbe4d67a6f262dd670923674b003af1726.tar.gz
CMake-f5c0efdbe4d67a6f262dd670923674b003af1726.tar.bz2
cmGlobalGenerator: Create a non-virtual 'DoGenerate' method
Make the virtual 'Generate' method protected. Make 'DoGenerate' the main entry point to generation. This gives cmGlobalGenerator a chance to do some early operations before the individual generator-specific implementations take over.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.h')
-rw-r--r--Source/cmGlobalXCodeGenerator.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/cmGlobalXCodeGenerator.h b/Source/cmGlobalXCodeGenerator.h
index ae23e3b..fcdd349 100644
--- a/Source/cmGlobalXCodeGenerator.h
+++ b/Source/cmGlobalXCodeGenerator.h
@@ -64,13 +64,6 @@ public:
std::vector<std::string> const& makeOptions = std::vector<std::string>()
);
- /**
- * Generate the all required files for building this project/tree. This
- * basically creates a series of LocalGenerators for each directory and
- * requests that they Generate.
- */
- virtual void Generate();
-
/** Append the subdirectory for the given configuration. */
virtual void AppendDirectoryForConfig(const std::string& prefix,
const std::string& config,
@@ -91,6 +84,8 @@ public:
virtual bool SetGeneratorToolset(std::string const& ts, cmMakefile* mf);
void AppendFlag(std::string& flags, std::string const& flag);
+protected:
+ virtual void Generate();
private:
cmXCodeObject* CreateOrGetPBXGroup(cmTarget& cmtarget,
cmSourceGroup* sg);