summaryrefslogtreecommitdiff
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-12-29 11:53:36 -0500
committerAlexander Neundorf <neundorf@kde.org>2007-12-29 11:53:36 -0500
commitf3ea6a351ace6121a299bb400719f98576c6738e (patch)
tree344317cc531ad2057f2a1ce6824bbb15327bc1ae /Source/cmDocumentation.cxx
parentbd454247da73a5649f2a0315e6ae9b454f0e5948 (diff)
downloadcmake-f3ea6a351ace6121a299bb400719f98576c6738e.tar.gz
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
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r--Source/cmDocumentation.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index c05d62db73..8affbe3c7b 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);