diff options
author | Craig Scott <craig.scott@crascit.com> | 2018-12-02 03:50:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-18 17:57:34 (GMT) |
commit | 6023fe7ff22848bc29ee67395eeb10f066758c06 (patch) | |
tree | 3812b3b9f099502e68abc803e3316c0266e20cde /Source/CursesDialog | |
parent | 7408cd39298dfce442d7aa539a90a227433865d5 (diff) | |
download | CMake-6023fe7ff22848bc29ee67395eeb10f066758c06.zip CMake-6023fe7ff22848bc29ee67395eeb10f066758c06.tar.gz CMake-6023fe7ff22848bc29ee67395eeb10f066758c06.tar.bz2 |
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.
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r-- | Source/CursesDialog/ccmake.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx index 44789b0..ec3cd9f 100644 --- a/Source/CursesDialog/ccmake.cxx +++ b/Source/CursesDialog/ccmake.cxx @@ -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; } |