Push the initialize and unused states when copying

This commit is contained in:
Ben Boeckel 2010-09-07 15:09:33 -04:00
parent 439877f620
commit 8b520158c3
1 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,8 @@ cmMakefile::cmMakefile(): Internal(new Internals)
cmMakefile::cmMakefile(const cmMakefile& mf): Internal(new Internals)
{
this->Internal->VarStack.push(mf.Internal->VarStack.top().Closure());
this->Internal->VarInitStack.push(mf.Internal->VarInitStack.top());
this->Internal->VarUsageStack.push(mf.Internal->VarUsageStack.top());
this->Prefix = mf.Prefix;
this->AuxSourceDirectories = mf.AuxSourceDirectories;