فهرست منبع

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

Ken Martin 20 سال پیش
والد
کامیت
0f8282fab1
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      Source/cmGlobalUnixMakefileGenerator3.cxx

+ 5 - 1
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);
 }