diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-28 07:50:52 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-28 07:50:52 +0200 |
commit | a48aebcb67a66bd2fee1318bb971cc5e3b016410 (patch) | |
tree | a93f900fdbcfcccfa80c7c6cd14ac29bbfca03bb /Source/cmGlobalVisualStudio12Generator.cxx | |
parent | e4c78b37cec74c505e8a4951276c17f7e64e5f67 (diff) | |
download | cmake-a48aebcb67a66bd2fee1318bb971cc5e3b016410.tar.gz |
cmLocalGenerator: Require a parent in the constructor.
Pass the parent though cmGlobalGenerator::CreateLocalGenerator.
This will make it easy to initialize state scopes independent of
cmMakefile.
Diffstat (limited to 'Source/cmGlobalVisualStudio12Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio12Generator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio12Generator.cxx b/Source/cmGlobalVisualStudio12Generator.cxx index e70e08297b..e298b06ddd 100644 --- a/Source/cmGlobalVisualStudio12Generator.cxx +++ b/Source/cmGlobalVisualStudio12Generator.cxx @@ -217,10 +217,12 @@ void cmGlobalVisualStudio12Generator::WriteSLNHeader(std::ostream& fout) } //---------------------------------------------------------------------------- -cmLocalGenerator *cmGlobalVisualStudio12Generator::CreateLocalGenerator() +cmLocalGenerator * +cmGlobalVisualStudio12Generator::CreateLocalGenerator(cmLocalGenerator* parent) { cmLocalVisualStudio10Generator* lg = - new cmLocalVisualStudio10Generator(cmLocalVisualStudioGenerator::VS12); + new cmLocalVisualStudio10Generator(cmLocalVisualStudioGenerator::VS12, + parent); lg->SetGlobalGenerator(this); return lg; } |