diff options
author | Patrick Gansterer <paroga@paroga.com> | 2012-11-19 14:48:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-11-19 17:54:30 (GMT) |
commit | e8f841473bcefc618ddf6712567e624156e88399 (patch) | |
tree | 2c77a631bcf9ee7c0cf731354db30c87a1cae312 /Source/cmGlobalVisualStudio6Generator.h | |
parent | 3359d95c00c221328d284e443c1d49e12630be63 (diff) | |
download | CMake-e8f841473bcefc618ddf6712567e624156e88399.zip CMake-e8f841473bcefc618ddf6712567e624156e88399.tar.gz CMake-e8f841473bcefc618ddf6712567e624156e88399.tar.bz2 |
Introduce the abstract class cmGlobalGeneratorFactory
This new abstract class allows us move some logic from the
cmGlobalGenerator into its own layer in a next step.
Diffstat (limited to 'Source/cmGlobalVisualStudio6Generator.h')
-rw-r--r-- | Source/cmGlobalVisualStudio6Generator.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio6Generator.h b/Source/cmGlobalVisualStudio6Generator.h index 259aa8d..bc23cf8 100644 --- a/Source/cmGlobalVisualStudio6Generator.h +++ b/Source/cmGlobalVisualStudio6Generator.h @@ -13,6 +13,7 @@ #define cmGlobalVisualStudio6Generator_h #include "cmGlobalVisualStudioGenerator.h" +#include "cmGlobalGeneratorFactory.h" class cmTarget; @@ -25,8 +26,9 @@ class cmGlobalVisualStudio6Generator : public cmGlobalVisualStudioGenerator { public: cmGlobalVisualStudio6Generator(); - static cmGlobalGenerator* New() { - return new cmGlobalVisualStudio6Generator; } + static cmGlobalGeneratorFactory* NewFactory() { + return new cmGlobalGeneratorSimpleFactory + <cmGlobalVisualStudio6Generator>(); } ///! Get the name for the generator. virtual const char* GetName() const { |