mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-02 22:09:35 +00:00
Fix for bug #0010466, fix crash in --help-module.
This commit is contained in:
@@ -1177,11 +1177,18 @@ bool cmDocumentation::PrintDocumentationSingleModule(std::ostream& os)
|
||||
this->CurrentArgument.c_str(),
|
||||
*this->AllSections["Modules"]))
|
||||
{
|
||||
this->PrintDocumentationCommand
|
||||
(os, this->AllSections["Modules"]->GetEntries()[0]);
|
||||
os << "\n Defined in: ";
|
||||
os << moduleName << "\n";
|
||||
return true;
|
||||
if(this->AllSections["Modules"]->GetEntries().size())
|
||||
{
|
||||
this->PrintDocumentationCommand
|
||||
(os, this->AllSections["Modules"]->GetEntries()[0]);
|
||||
os << "\n Defined in: ";
|
||||
os << moduleName << "\n";
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user