Skip to content
Snippets Groups Projects
Commit 6023fe7f authored by Craig Scott's avatar Craig Scott Committed by Brad King
Browse files

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.
parent 7408cd39
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment