BUG: make -help-module-list work by filling the modules section first, also
for custom modules Alex
This commit is contained in:
parent
7849ab756f
commit
f8f232bdd8
|
@ -346,6 +346,15 @@ bool cmDocumentation::PrintDocumentation(Type ht, std::ostream& os)
|
||||||
this->PrintDocumentationList(os,"Compatibility Commands");
|
this->PrintDocumentationList(os,"Compatibility Commands");
|
||||||
return true;
|
return true;
|
||||||
case cmDocumentation::ModuleList:
|
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");
|
this->PrintDocumentationList(os,"Modules");
|
||||||
return true;
|
return true;
|
||||||
case cmDocumentation::PropertyList:
|
case cmDocumentation::PropertyList:
|
||||||
|
|
Loading…
Reference in New Issue