summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-24 17:31:34 (GMT)
committerBrad King <brad.king@kitware.com>2009-07-24 17:31:34 (GMT)
commit71c0e1417bdc42fbcc48986c7cb7c26642c1f665 (patch)
treee42517cc97b5977fa69bd1f4ad58f999ba929cc4 /Source/cmMakefile.cxx
parent071ce33ec98fd6eac3345d23de76822643611083 (diff)
downloadCMake-71c0e1417bdc42fbcc48986c7cb7c26642c1f665.zip
CMake-71c0e1417bdc42fbcc48986c7cb7c26642c1f665.tar.gz
CMake-71c0e1417bdc42fbcc48986c7cb7c26642c1f665.tar.bz2
ENH: Keep only FinalPass commands in memory
In cmMakefile we save all invoked commands so that FinalPass can be called on them later. Most commands have no final pass, so we should keep only the few that do.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 84d82df..648639c 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -415,7 +415,7 @@ bool cmMakefile::ExecuteCommand(const cmListFileFunction& lff,
cmSystemTools::SetFatalErrorOccured();
}
}
- else
+ else if(pcmd->HasFinalPass())
{
// use the command
this->UsedCommands.push_back(pcmd.release());