From 8144b00e32cf1e24daf41353cbcd1806311ceac9 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 18 Jan 2019 11:08:45 -0500 Subject: 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. --- Source/cmGlobalVisualStudio11Generator.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Source/cmGlobalVisualStudio11Generator.cxx') diff --git a/Source/cmGlobalVisualStudio11Generator.cxx b/Source/cmGlobalVisualStudio11Generator.cxx index 36eb492e14..a44058b622 100644 --- a/Source/cmGlobalVisualStudio11Generator.cxx +++ b/Source/cmGlobalVisualStudio11Generator.cxx @@ -69,9 +69,16 @@ public: "Optional [arch] can be \"Win64\" or \"ARM\"."; } - void GetGenerators(std::vector& names) const override + std::vector GetGeneratorNames() const override { + std::vector names; names.push_back(vs11generatorName); + return names; + } + + std::vector GetGeneratorNamesWithPlatform() const override + { + std::vector names; names.push_back(vs11generatorName + std::string(" ARM")); names.push_back(vs11generatorName + std::string(" Win64")); @@ -80,6 +87,8 @@ public: for (std::string const& i : installedSDKs) { names.push_back(std::string(vs11generatorName) + " " + i); } + + return names; } bool SupportsToolset() const override { return true; } -- cgit v1.2.1