Fix for bug #0010466, fix crash in --help-module.
This commit is contained in:
parent
9345833272
commit
2c6f8de2cc
@ -1177,11 +1177,18 @@ bool cmDocumentation::PrintDocumentationSingleModule(std::ostream& os)
|
|||||||
this->CurrentArgument.c_str(),
|
this->CurrentArgument.c_str(),
|
||||||
*this->AllSections["Modules"]))
|
*this->AllSections["Modules"]))
|
||||||
{
|
{
|
||||||
this->PrintDocumentationCommand
|
if(this->AllSections["Modules"]->GetEntries().size())
|
||||||
(os, this->AllSections["Modules"]->GetEntries()[0]);
|
{
|
||||||
os << "\n Defined in: ";
|
this->PrintDocumentationCommand
|
||||||
os << moduleName << "\n";
|
(os, this->AllSections["Modules"]->GetEntries()[0]);
|
||||||
return true;
|
os << "\n Defined in: ";
|
||||||
|
os << moduleName << "\n";
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user