summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorPatrick Gansterer <paroga@paroga.com>2012-11-19 15:13:54 (GMT)
committerBrad King <brad.king@kitware.com>2012-11-19 17:54:35 (GMT)
commit04ff866ca8a0c5f4f8712d6cfafcd192ed4cbe58 (patch)
tree690d285ba132f07a4189cf68564f962aae7cd158 /Source/cmake.h
parent984ebc3350f72cb005999f7b796803f83be15304 (diff)
downloadCMake-04ff866ca8a0c5f4f8712d6cfafcd192ed4cbe58.zip
CMake-04ff866ca8a0c5f4f8712d6cfafcd192ed4cbe58.tar.gz
CMake-04ff866ca8a0c5f4f8712d6cfafcd192ed4cbe58.tar.bz2
Allow a GeneratorFactory handling of more than one generator
Pass the name of the requested generator to the generator factory, which is now responsible to check if it can create a matching generator for the name. This allows us to add more logic to the factory in a next step, so that not every possible generator needs to get registered explicit in cmake::AddDefaultGenerators().
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index e6bfa44..79e05ca 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -397,10 +397,9 @@ protected:
cmExternalMakefileProjectGenerator* (*CreateExtraGeneratorFunctionType)();
typedef std::map<cmStdString,
CreateExtraGeneratorFunctionType> RegisteredExtraGeneratorsMap;
- typedef std::map<cmStdString,
- cmGlobalGeneratorFactory*> RegisteredGeneratorsMap;
+ typedef std::vector<cmGlobalGeneratorFactory*> RegisteredGeneratorsVector;
RegisteredCommandsMap Commands;
- RegisteredGeneratorsMap Generators;
+ RegisteredGeneratorsVector Generators;
RegisteredExtraGeneratorsMap ExtraGenerators;
void AddDefaultCommands();
void AddDefaultGenerators();