diff options
author | Brad King <brad.king@kitware.com> | 2019-01-18 15:13:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-18 17:29:53 (GMT) |
commit | 818df52c488a94628169811bddffe05f36c68b42 (patch) | |
tree | 9beedc775cd16676f855334c0eba3b032abaa6cd /Source/cmake.cxx | |
parent | 8144b00e32cf1e24daf41353cbcd1806311ceac9 (diff) | |
download | CMake-818df52c488a94628169811bddffe05f36c68b42.zip CMake-818df52c488a94628169811bddffe05f36c68b42.tar.gz CMake-818df52c488a94628169811bddffe05f36c68b42.tar.bz2 |
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/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index f320aff..927d39b 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -976,6 +976,7 @@ void cmake::GetRegisteredGenerators(std::vector<GeneratorInfo>& generators, GeneratorInfo info; info.supportsToolset = gen->SupportsToolset(); info.supportsPlatform = gen->SupportsPlatform(); + info.supportedPlatforms = gen->GetKnownPlatforms(); info.name = name; info.baseName = name; info.isAlias = false; |