From c3078abfe592b5325dcd0b28ef9594c9505d1263 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 25 Apr 2006 16:31:21 -0400 Subject: [PATCH] ENH: fix global help --- Source/cmGlobalUnixMakefileGenerator3.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index ee5279e0c..4efebaaf7 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -823,7 +823,7 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule if (lg2 == lg || !lg->GetParent()) { // for each target Generate the rule files for each target. - cmTargets& targets = lg->GetMakefile()->GetTargets(); + cmTargets& targets = lg2->GetMakefile()->GetTargets(); for(cmTargets::iterator t = targets.begin(); t != targets.end(); ++t) { if((t->second.GetType() == cmTarget::EXECUTABLE) ||