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:
Craig Scott 2018-12-02 14:50:55 +11:00 committed by Brad King
parent 7408cd3929
commit 6023fe7ff2

View File

@ -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;
}