Browse Source

BUG: The --help option should list generators. This addresses bug #2494.

Brad King 19 years ago
parent
commit
9e709f6bde
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/CursesDialog/ccmake.cxx

+ 3 - 0
Source/CursesDialog/ccmake.cxx

@@ -110,11 +110,14 @@ int main(int argc, char** argv)
     {
     cmake hcm;
     std::vector<cmDocumentationEntry> commands;
+    std::vector<cmDocumentationEntry> generators;
     hcm.GetCommandDocumentation(commands);
+    hcm.GetGeneratorDocumentation(generators);
     doc.SetName("ccmake");
     doc.SetNameSection(cmDocumentationName);
     doc.SetUsageSection(cmDocumentationUsage);
     doc.SetDescriptionSection(cmDocumentationDescription);
+    doc.SetGeneratorsSection(&generators[0]);
     doc.SetOptionsSection(cmDocumentationOptions);
     doc.SetCommandsSection(&commands[0]);
     doc.SetSeeAlsoList(cmDocumentationSeeAlso);