summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio10Generator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-10 13:37:40 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-10 14:38:35 (GMT)
commit40a732800d52b394d7bd4a81e9aaef04ef5914e6 (patch)
treee4f665370ae5fcfb3767eecad49dbcd4b45aecff /Source/cmGlobalVisualStudio10Generator.h
parent5ca7e5057bcadbcbe6b933b004ba37ddb5199dba (diff)
downloadCMake-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/cmGlobalVisualStudio10Generator.h')
-rw-r--r--Source/cmGlobalVisualStudio10Generator.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.h b/Source/cmGlobalVisualStudio10Generator.h
index 1e72959..7f7c516 100644
--- a/Source/cmGlobalVisualStudio10Generator.h
+++ b/Source/cmGlobalVisualStudio10Generator.h
@@ -14,8 +14,6 @@
class cmGlobalVisualStudio10Generator : public cmGlobalVisualStudio8Generator
{
public:
- cmGlobalVisualStudio10Generator(cmake* cm, const std::string& name,
- const std::string& platformName);
static cmGlobalGeneratorFactory* NewFactory();
bool MatchesGeneratorName(const std::string& name) const override;
@@ -125,6 +123,9 @@ public:
cmIDEFlagTable const* GetNasmFlagTable() const;
protected:
+ cmGlobalVisualStudio10Generator(cmake* cm, const std::string& name,
+ std::string const& platformInGeneratorName);
+
void Generate() override;
virtual bool InitializeSystem(cmMakefile* mf);
virtual bool InitializeWindows(cmMakefile* mf);
@@ -168,6 +169,8 @@ protected:
private:
class Factory;
+ friend class Factory;
+
struct LongestSourcePath
{
LongestSourcePath()