summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGeneratorFactory.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-24 09:31:14 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-27 13:18:31 (GMT)
commitc7b79aa16adc1117e62bf146c64f97c992ec2e2e (patch)
tree66fae23d85d71ff99d8ac1d131696707fcec34b1 /Source/cmGlobalGeneratorFactory.h
parent01e1cd5c1fc5e2684ec69d4916dd31ed23746055 (diff)
downloadCMake-c7b79aa16adc1117e62bf146c64f97c992ec2e2e.zip
CMake-c7b79aa16adc1117e62bf146c64f97c992ec2e2e.tar.gz
CMake-c7b79aa16adc1117e62bf146c64f97c992ec2e2e.tar.bz2
cmGlobalGenerator: Require a cmake instance in ctor.
It is required anyway, so this makes it explicit.
Diffstat (limited to 'Source/cmGlobalGeneratorFactory.h')
-rw-r--r--Source/cmGlobalGeneratorFactory.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmGlobalGeneratorFactory.h b/Source/cmGlobalGeneratorFactory.h
index 3c2cd60..ebba599 100644
--- a/Source/cmGlobalGeneratorFactory.h
+++ b/Source/cmGlobalGeneratorFactory.h
@@ -15,6 +15,7 @@
#include "cmStandardIncludes.h"
+class cmake;
class cmGlobalGenerator;
struct cmDocumentationEntry;
@@ -30,7 +31,7 @@ public:
/** Create a GlobalGenerator */
virtual cmGlobalGenerator* CreateGlobalGenerator(
- const std::string& n) const = 0;
+ const std::string& n, cmake* cm) const = 0;
/** Get the documentation entry for this factory */
virtual void GetDocumentation(cmDocumentationEntry& entry) const = 0;
@@ -44,10 +45,10 @@ class cmGlobalGeneratorSimpleFactory : public cmGlobalGeneratorFactory
{
public:
/** Create a GlobalGenerator */
- virtual cmGlobalGenerator* CreateGlobalGenerator(
- const std::string& name) const {
+ virtual cmGlobalGenerator*
+ CreateGlobalGenerator(const std::string& name, cmake* cm) const {
if (name != T::GetActualName()) return 0;
- return new T; }
+ return new T(cm); }
/** Get the documentation entry for this factory */
virtual void GetDocumentation(cmDocumentationEntry& entry) const {