Browse Source

COMP: fix some warnings and add some doc strings back in

Ken Martin 18 years ago
parent
commit
b6f1cb4edf
2 changed files with 6 additions and 1 deletions
  1. 5 0
      Source/cmDocumentation.cxx
  2. 1 1
      Source/cmakemain.cxx

+ 5 - 0
Source/cmDocumentation.cxx

@@ -235,6 +235,11 @@ cmDocumentation::cmDocumentation()
   sec = new cmDocumentationSection("Generators","GENERATORS");
   sec->Append(cmDocumentationGeneratorsHeader);
   this->AllSections["Generators"] = sec;  
+
+  sec = new cmDocumentationSection("Compatibility Commands",
+                                   "COMPATIBILITY COMMANDS");
+  sec->Append(cmCompatCommandsDocumentationDescription);
+  this->AllSections["Compatibility Commands"] = sec;  
 }
 
 //----------------------------------------------------------------------------

+ 1 - 1
Source/cmakemain.cxx

@@ -315,7 +315,7 @@ int do_cmake(int ac, char** av)
     doc.AppendSection("Generators",generators);
     doc.PrependSection("Options",cmDocumentationOptions);
     doc.SetSection("Commands",commands);
-    doc.SetSection("Compatibility Commands",compatCommands);
+    doc.AppendSection("Compatibility Commands",compatCommands);
     doc.SetSections(propDocs);
 
     doc.SetSeeAlsoList(cmDocumentationSeeAlso);