[cmake-commits] alex committed cmDocumentation.cxx 1.64 1.65

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Jan 14 17:05:11 EST 2008


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv26390

Modified Files:
	cmDocumentation.cxx 
Log Message:
BUG: make -help-module-list work by filling the modules section first, also
for custom modules

Alex


Index: cmDocumentation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmDocumentation.cxx,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- cmDocumentation.cxx	10 Jan 2008 03:09:19 -0000	1.64
+++ cmDocumentation.cxx	14 Jan 2008 22:05:09 -0000	1.65
@@ -346,6 +346,15 @@
       this->PrintDocumentationList(os,"Compatibility Commands");
       return true;
     case cmDocumentation::ModuleList: 
+      // find the modules first, print the custom module docs only if 
+      // any custom modules have been found actually, Alex
+      this->CreateCustomModulesSection();
+      this->CreateModulesSection();
+      if (this->AllSections.find("Custom CMake Modules")
+         != this->AllSections.end())
+        {
+        this->PrintDocumentationList(os,"Custom CMake Modules");
+        }
       this->PrintDocumentationList(os,"Modules");
       return true;
     case cmDocumentation::PropertyList: 



More information about the Cmake-commits mailing list