From 0f8282fab1bd7a52d33914cdf73cb80113b49f7a Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Wed, 1 Jun 2005 13:24:37 -0400 Subject: BUG: do not add help target if there is a real target named help --- Source/cmGlobalUnixMakefileGenerator3.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index 669b487..7a155d5 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -155,7 +155,11 @@ void cmGlobalUnixMakefileGenerator3::WriteMainMakefile() this->WriteConvenienceRules(makefileStream,lg,emittedTargets); } - this->WriteHelpRule(makefileStream); + // add a help target as long as there isn;t a real target named help + if(emittedTargets.insert("help").second) + { + this->WriteHelpRule(makefileStream); + } lg = static_cast(m_LocalGenerators[0]); lg->WriteSpecialTargetsBottom(makefileStream); } -- cgit v0.12