BUG: do not add help target if there is a real target named help

This commit is contained in:
Ken Martin 2005-06-01 13:24:37 -04:00
parent 5a4f27b61c
commit 0f8282fab1
1 changed files with 5 additions and 1 deletions

View File

@ -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<cmLocalUnixMakefileGenerator3 *>(m_LocalGenerators[0]);
lg->WriteSpecialTargetsBottom(makefileStream);
}