summaryrefslogtreecommitdiff
path: root/Source/cmcmd.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-31 01:43:31 +0200
committerStephen Kelly <steveire@gmail.com>2015-08-28 18:44:38 +0200
commitacb006229dbc531303538f4de1dc4d16d27369a5 (patch)
tree72c546947ad69df5c89662f9b0a2a53e6f76ed81 /Source/cmcmd.cxx
parent83b8a927e5a992480e96b0be36ea0426a924c41f (diff)
downloadcmake-acb006229dbc531303538f4de1dc4d16d27369a5.tar.gz
cmGlobalGenerator: Require a snapshot to create a local generator.
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r--Source/cmcmd.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index 7bee0ea94c..868dbe3fe3 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -768,7 +768,9 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args)
if(cmGlobalGenerator* ggd = cm.CreateGlobalGenerator(gen))
{
cm.SetGlobalGenerator(ggd);
- cmsys::auto_ptr<cmLocalGenerator> lgd(ggd->MakeLocalGenerator());
+ cmState::Snapshot snapshot = cm.GetCurrentSnapshot();
+ cmsys::auto_ptr<cmLocalGenerator> lgd(
+ ggd->MakeLocalGenerator(snapshot));
lgd->GetMakefile()->SetCurrentSourceDirectory(startDir);
lgd->GetMakefile()->SetCurrentBinaryDirectory(startOutDir);