1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
5 #include "cmConfigure.h" // IWYU pragma: keep
11 #include "cmGlobalVisualStudio12Generator.h"
13 class cmGlobalGeneratorFactory;
17 /** \class cmGlobalVisualStudio14Generator */
18 class cmGlobalVisualStudio14Generator : public cmGlobalVisualStudio12Generator
21 static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory();
23 bool MatchesGeneratorName(const std::string& name) const override;
25 const char* GetAndroidApplicationTypeRevision() const override
31 cmGlobalVisualStudio14Generator(cmake* cm, const std::string& name,
32 std::string const& platformInGeneratorName);
34 bool InitializeWindows(cmMakefile* mf) override;
35 bool InitializeWindowsStore(cmMakefile* mf) override;
36 bool InitializeAndroid(cmMakefile* mf) override;
37 bool SelectWindowsStoreToolset(std::string& toolset) const override;
39 // These aren't virtual because we need to check if the selected version
40 // of the toolset is installed
41 bool IsWindowsStoreToolsetInstalled() const;
43 // Used to make sure that the Windows 10 SDK selected can work with the
44 // version of the toolset.
45 virtual std::string GetWindows10SDKMaxVersion(cmMakefile* mf) const;
47 virtual bool SelectWindows10SDK(cmMakefile* mf, bool required);
49 void SetWindowsTargetPlatformVersion(std::string const& version,
52 // Used to verify that the Desktop toolset for the current generator is
53 // installed on the machine.
54 bool IsWindowsDesktopToolsetInstalled() const override;
56 std::string GetWindows10SDKVersion(cmMakefile* mf);