diff options
author | Brad King <brad.king@kitware.com> | 2019-01-18 16:08:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-18 17:29:53 (GMT) |
commit | 8144b00e32cf1e24daf41353cbcd1806311ceac9 (patch) | |
tree | 9dab608492a1c0faa7f5381524ffcd7d2c88334d /Source/cmGlobalGeneratorFactory.h | |
parent | b70c0aed5c616edce5cbc803c7de92580f835f90 (diff) | |
download | CMake-8144b00e32cf1e24daf41353cbcd1806311ceac9.zip CMake-8144b00e32cf1e24daf41353cbcd1806311ceac9.tar.gz CMake-8144b00e32cf1e24daf41353cbcd1806311ceac9.tar.bz2 |
Split global generator factory list with and without platforms
Replace `cmGlobalGeneratorFactory::GetGenerators` with a pair of methods
to split the list of generator names into those that have platforms in
the name and those that do not.
Diffstat (limited to 'Source/cmGlobalGeneratorFactory.h')
-rw-r--r-- | Source/cmGlobalGeneratorFactory.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmGlobalGeneratorFactory.h b/Source/cmGlobalGeneratorFactory.h index 4e3e770..906ec9a 100644 --- a/Source/cmGlobalGeneratorFactory.h +++ b/Source/cmGlobalGeneratorFactory.h @@ -30,7 +30,8 @@ public: virtual void GetDocumentation(cmDocumentationEntry& entry) const = 0; /** Get the names of the current registered generators */ - virtual void GetGenerators(std::vector<std::string>& names) const = 0; + virtual std::vector<std::string> GetGeneratorNames() const = 0; + virtual std::vector<std::string> GetGeneratorNamesWithPlatform() const = 0; /** Determine whether or not this generator supports toolsets */ virtual bool SupportsToolset() const = 0; @@ -60,9 +61,15 @@ public: } /** Get the names of the current registered generators */ - void GetGenerators(std::vector<std::string>& names) const override + std::vector<std::string> GetGeneratorNames() const override { + std::vector<std::string> names; names.push_back(T::GetActualName()); + return names; + } + std::vector<std::string> GetGeneratorNamesWithPlatform() const override + { + return std::vector<std::string>(); } /** Determine whether or not this generator supports toolsets */ |