[cmake-commits] martink committed cmDocumentation.cxx 1.60 1.61
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Nov 29 10:23:28 EST 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv23618
Modified Files:
cmDocumentation.cxx
Log Message:
BUG: fix single module generation
Index: cmDocumentation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmDocumentation.cxx,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- cmDocumentation.cxx 24 Oct 2007 15:36:46 -0000 1.60
+++ cmDocumentation.cxx 29 Nov 2007 15:23:26 -0000 1.61
@@ -1059,17 +1059,23 @@
}
}
- if(!moduleName.empty()
- && this->CreateSingleModule(moduleName.c_str(),
+ if(!moduleName.empty())
+ {
+ cmDocumentationSection *sec =
+ new cmDocumentationSection("Standard CMake Modules", "MODULES");
+ this->AllSections["Modules"] = sec;
+ if (this->CreateSingleModule(moduleName.c_str(),
this->CurrentArgument.c_str(),
*this->AllSections["Modules"]))
- {
- this->PrintDocumentationCommand
- (os, this->AllSections["Modules"]->GetEntries()[0]);
- os << "\n Defined in: ";
- os << moduleName << "\n";
- return true;
+ {
+ this->PrintDocumentationCommand
+ (os, this->AllSections["Modules"]->GetEntries()[0]);
+ os << "\n Defined in: ";
+ os << moduleName << "\n";
+ return true;
+ }
}
+
// Argument was not a module. Complain.
os << "Argument \"" << this->CurrentArgument.c_str()
<< "\" to --help-module is not a CMake module.\n";
More information about the Cmake-commits
mailing list