mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 14:08:35 +08:00
ccmake: Append rather than replace Generators section of docs
Using SetSection() discards the heading line populated by addCMakeStandardDocSections(), whereas AppendSection() preserves it. This also makes the code used for ccmake consistent with that used for cmake and cmake-gui.
This commit is contained in:
@@ -95,7 +95,7 @@ int main(int argc, char const* const* argv)
|
||||
if (argc == 1) {
|
||||
doc.AppendSection("Usage", cmDocumentationUsageNote);
|
||||
}
|
||||
doc.SetSection("Generators", generators);
|
||||
doc.AppendSection("Generators", generators);
|
||||
doc.PrependSection("Options", cmDocumentationOptions);
|
||||
return doc.PrintRequestedDocumentation(std::cout) ? 0 : 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user