summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-01-14 22:05:09 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2008-01-14 22:05:09 (GMT)
commitf8f232bdd88ee71e008d79c4a50c986407c23a1d (patch)
tree52774b64b2c9e0d60dc461e1737dee452ab275ac /Source
parent7849ab756fc60b8435d3381ce06040575a2edbda (diff)
downloadCMake-f8f232bdd88ee71e008d79c4a50c986407c23a1d.zip
CMake-f8f232bdd88ee71e008d79c4a50c986407c23a1d.tar.gz
CMake-f8f232bdd88ee71e008d79c4a50c986407c23a1d.tar.bz2
BUG: make -help-module-list work by filling the modules section first, also
for custom modules Alex
Diffstat (limited to 'Source')
-rw-r--r--Source/cmDocumentation.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 4e0177f..56c8498 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -346,6 +346,15 @@ bool cmDocumentation::PrintDocumentation(Type ht, std::ostream& os)
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: