[cmake-commits] alex committed cmDocumentation.cxx 1.61 1.62
cmake-commits at cmake.org
cmake-commits at cmake.org
Sat Dec 29 11:53:38 EST 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv19652
Modified Files:
cmDocumentation.cxx
Log Message:
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
Index: cmDocumentation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmDocumentation.cxx,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- cmDocumentation.cxx 29 Nov 2007 15:23:26 -0000 1.61
+++ cmDocumentation.cxx 29 Dec 2007 16:53:36 -0000 1.62
@@ -317,6 +317,7 @@
{
this->PrintSections.erase(this->PrintSections.begin(),
this->PrintSections.end());
+ this->ModulesFound.clear();
}
//----------------------------------------------------------------------------
@@ -452,6 +453,8 @@
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);
More information about the Cmake-commits
mailing list