diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-12-29 16:53:36 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-12-29 16:53:36 (GMT) |
commit | f3ea6a351ace6121a299bb400719f98576c6738e (patch) | |
tree | 344317cc531ad2057f2a1ce6824bbb15327bc1ae /Source/cmDocumentation.cxx | |
parent | bd454247da73a5649f2a0315e6ae9b454f0e5948 (diff) | |
download | CMake-f3ea6a351ace6121a299bb400719f98576c6738e.zip CMake-f3ea6a351ace6121a299bb400719f98576c6738e.tar.gz CMake-f3ea6a351ace6121a299bb400719f98576c6738e.tar.bz2 |
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.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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); |