diff options
author | Brad King <brad.king@kitware.com> | 2019-01-10 13:37:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-10 14:38:35 (GMT) |
commit | 40a732800d52b394d7bd4a81e9aaef04ef5914e6 (patch) | |
tree | e4f665370ae5fcfb3767eecad49dbcd4b45aecff /Source/cmGlobalVisualStudio15Generator.h | |
parent | 5ca7e5057bcadbcbe6b933b004ba37ddb5199dba (diff) | |
download | CMake-40a732800d52b394d7bd4a81e9aaef04ef5914e6.zip CMake-40a732800d52b394d7bd4a81e9aaef04ef5914e6.tar.gz CMake-40a732800d52b394d7bd4a81e9aaef04ef5914e6.tar.bz2 |
VS: Clarify global generator constructor interface
Make the constructors protected since they should be produced through
factories. Also rename `platform{ => InGenerator}Name` to clarify
the meaning of the argument.
Diffstat (limited to 'Source/cmGlobalVisualStudio15Generator.h')
-rw-r--r-- | Source/cmGlobalVisualStudio15Generator.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio15Generator.h b/Source/cmGlobalVisualStudio15Generator.h index 233f3bc..da85d23 100644 --- a/Source/cmGlobalVisualStudio15Generator.h +++ b/Source/cmGlobalVisualStudio15Generator.h @@ -18,8 +18,6 @@ class cmake; class cmGlobalVisualStudio15Generator : public cmGlobalVisualStudio14Generator { public: - cmGlobalVisualStudio15Generator(cmake* cm, const std::string& name, - const std::string& platformName); static cmGlobalGeneratorFactory* NewFactory(); bool MatchesGeneratorName(const std::string& name) const override; @@ -32,6 +30,9 @@ public: std::string GetAuxiliaryToolset() const override; protected: + cmGlobalVisualStudio15Generator(cmake* cm, const std::string& name, + std::string const& platformInGeneratorName); + bool InitializeWindows(cmMakefile* mf) override; bool SelectWindowsStoreToolset(std::string& toolset) const override; @@ -53,6 +54,7 @@ protected: private: class Factory; + friend class Factory; mutable cmVSSetupAPIHelper vsSetupAPIHelper; }; #endif |