summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio10Generator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-28 05:50:52 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-28 05:50:52 (GMT)
commita48aebcb67a66bd2fee1318bb971cc5e3b016410 (patch)
treea93f900fdbcfcccfa80c7c6cd14ac29bbfca03bb /Source/cmGlobalVisualStudio10Generator.cxx
parente4c78b37cec74c505e8a4951276c17f7e64e5f67 (diff)
downloadCMake-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/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio10Generator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx
index 8240099..6481ec2 100644
--- a/Source/cmGlobalVisualStudio10Generator.cxx
+++ b/Source/cmGlobalVisualStudio10Generator.cxx
@@ -308,10 +308,12 @@ void cmGlobalVisualStudio10Generator::WriteSLNHeader(std::ostream& fout)
}
///! Create a local generator appropriate to this Global Generator
-cmLocalGenerator *cmGlobalVisualStudio10Generator::CreateLocalGenerator()
+cmLocalGenerator *
+cmGlobalVisualStudio10Generator::CreateLocalGenerator(cmLocalGenerator* parent)
{
cmLocalVisualStudio10Generator* lg =
- new cmLocalVisualStudio10Generator(cmLocalVisualStudioGenerator::VS10);
+ new cmLocalVisualStudio10Generator(cmLocalVisualStudioGenerator::VS10,
+ parent);
lg->SetGlobalGenerator(this);
return lg;
}