From f3ea6a351ace6121a299bb400719f98576c6738e Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sat, 29 Dec 2007 11:53:36 -0500 Subject: 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 --- Source/cmDocumentation.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx index c05d62d..8affbe3 100644 --- a/Source/cmDocumentation.cxx +++ b/Source/cmDocumentation.cxx @@ -317,6 +317,7 @@ void cmDocumentation::ClearSections() { this->PrintSections.erase(this->PrintSections.begin(), this->PrintSections.end()); + this->ModulesFound.clear(); } //---------------------------------------------------------------------------- @@ -452,6 +453,8 @@ void cmDocumentation if(fname.substr(fname.length()-6, 6) == ".cmake") { 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()) { this->ModulesFound.insert(moduleName); -- cgit v0.12