diff options
author | Brad King <brad.king@kitware.com> | 2019-01-18 10:13:55 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-18 12:29:53 -0500 |
commit | 818df52c488a94628169811bddffe05f36c68b42 (patch) | |
tree | 9beedc775cd16676f855334c0eba3b032abaa6cd /Source/cmGlobalVisualStudio14Generator.cxx | |
parent | 8144b00e32cf1e24daf41353cbcd1806311ceac9 (diff) | |
download | cmake-818df52c488a94628169811bddffe05f36c68b42.tar.gz |
Add global generator factory method to get list of known platforms
Add a `cmGlobalGeneratorFactory::GetKnownPlatforms` method to return
a list of known possible values for `CMAKE_GENERATOR_PLATFORM`.
Implement the method for each generator by referencing the list of
possible values documented in `Help/generator/*.rst` for it.
Co-Author: Julien Jomier <julien.jomier@kitware.com>
Diffstat (limited to 'Source/cmGlobalVisualStudio14Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio14Generator.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio14Generator.cxx b/Source/cmGlobalVisualStudio14Generator.cxx index 47768a8865..c87433e8d4 100644 --- a/Source/cmGlobalVisualStudio14Generator.cxx +++ b/Source/cmGlobalVisualStudio14Generator.cxx @@ -75,6 +75,15 @@ public: bool SupportsToolset() const override { return true; } bool SupportsPlatform() const override { return true; } + + std::vector<std::string> GetKnownPlatforms() const override + { + std::vector<std::string> platforms; + platforms.emplace_back("x64"); + platforms.emplace_back("Win32"); + platforms.emplace_back("ARM"); + return platforms; + } }; cmGlobalGeneratorFactory* cmGlobalVisualStudio14Generator::NewFactory() |