summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-09-07 19:09:33 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-09-07 19:12:15 (GMT)
commit8b520158c3c378acde541d2e99103dc9ab834595 (patch)
tree2eda97267f35d34d43c76ccdaa0838d2a2fb40f2 /Source/cmMakefile.cxx
parent439877f6208e25790ab14ae0e66efc392949e9e2 (diff)
downloadCMake-8b520158c3c378acde541d2e99103dc9ab834595.zip
CMake-8b520158c3c378acde541d2e99103dc9ab834595.tar.gz
CMake-8b520158c3c378acde541d2e99103dc9ab834595.tar.bz2
Push the initialize and unused states when copying
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 26b9a58..33c61a7 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -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;