diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-28 05:50:52 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-28 05:50:52 (GMT) |
commit | a48aebcb67a66bd2fee1318bb971cc5e3b016410 (patch) | |
tree | a93f900fdbcfcccfa80c7c6cd14ac29bbfca03bb /Source/cmGlobalVisualStudio9Generator.cxx | |
parent | e4c78b37cec74c505e8a4951276c17f7e64e5f67 (diff) | |
download | CMake-a48aebcb67a66bd2fee1318bb971cc5e3b016410.zip CMake-a48aebcb67a66bd2fee1318bb971cc5e3b016410.tar.gz CMake-a48aebcb67a66bd2fee1318bb971cc5e3b016410.tar.bz2 |
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/cmGlobalVisualStudio9Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio9Generator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio9Generator.cxx b/Source/cmGlobalVisualStudio9Generator.cxx index 1bc627f..0303c27 100644 --- a/Source/cmGlobalVisualStudio9Generator.cxx +++ b/Source/cmGlobalVisualStudio9Generator.cxx @@ -114,10 +114,12 @@ void cmGlobalVisualStudio9Generator::WriteSLNHeader(std::ostream& fout) } ///! Create a local generator appropriate to this Global Generator -cmLocalGenerator *cmGlobalVisualStudio9Generator::CreateLocalGenerator() +cmLocalGenerator * +cmGlobalVisualStudio9Generator::CreateLocalGenerator(cmLocalGenerator* parent) { cmLocalVisualStudio7Generator *lg - = new cmLocalVisualStudio7Generator(cmLocalVisualStudioGenerator::VS9); + = new cmLocalVisualStudio7Generator(cmLocalVisualStudioGenerator::VS9, + parent); lg->SetExtraFlagTable(this->GetExtraFlagTableVS8()); lg->SetGlobalGenerator(this); return lg; |