summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-06-01 17:24:37 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-06-01 17:24:37 (GMT)
commit0f8282fab1bd7a52d33914cdf73cb80113b49f7a (patch)
tree148a57d48043830811fb67cf48e0cd3bd6dbae92 /Source
parent5a4f27b61ce010dd3941ec5fc21a5d87916216e5 (diff)
downloadCMake-0f8282fab1bd7a52d33914cdf73cb80113b49f7a.zip
CMake-0f8282fab1bd7a52d33914cdf73cb80113b49f7a.tar.gz
CMake-0f8282fab1bd7a52d33914cdf73cb80113b49f7a.tar.bz2
BUG: do not add help target if there is a real target named help
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx6
1 files changed, 5 insertions, 1 deletions
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<cmLocalUnixMakefileGenerator3 *>(m_LocalGenerators[0]);
lg->WriteSpecialTargetsBottom(makefileStream);
}