BUG: create modules documentation not only for the first documentation creation step
in cmake (the set ModulesFound wasn't cleared at the beginning of each PrintDocumentation() function, so when documentation for modules was executed the second time, ModulesFound already contained all modules and so no module was documented) Alex
This commit is contained in:
parent
bd454247da
commit
f3ea6a351a
@ -317,6 +317,7 @@ void cmDocumentation::ClearSections()
|
|||||||
{
|
{
|
||||||
this->PrintSections.erase(this->PrintSections.begin(),
|
this->PrintSections.erase(this->PrintSections.begin(),
|
||||||
this->PrintSections.end());
|
this->PrintSections.end());
|
||||||
|
this->ModulesFound.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
@ -452,6 +453,8 @@ void cmDocumentation
|
|||||||
if(fname.substr(fname.length()-6, 6) == ".cmake")
|
if(fname.substr(fname.length()-6, 6) == ".cmake")
|
||||||
{
|
{
|
||||||
std::string moduleName = fname.substr(0, fname.length()-6);
|
std::string moduleName = fname.substr(0, fname.length()-6);
|
||||||
|
// this check is to avoid creating documentation for the modules with
|
||||||
|
// the same name in multiple directories of CMAKE_MODULE_PATH
|
||||||
if (this->ModulesFound.find(moduleName) == this->ModulesFound.end())
|
if (this->ModulesFound.find(moduleName) == this->ModulesFound.end())
|
||||||
{
|
{
|
||||||
this->ModulesFound.insert(moduleName);
|
this->ModulesFound.insert(moduleName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user