summaryrefslogtreecommitdiff
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-11-24 11:46:06 -0500
committerZach Mullen <zach.mullen@kitware.com>2009-11-24 11:46:06 -0500
commit0ae07800557bef97c43ddd64f144b258b8fdd5dc (patch)
tree11e25227b2346357e92d9eb0f077d7c05ee313bc /Source/cmDocumentation.cxx
parentbb187903979d20c8b8a5ed07276c6af122bad781 (diff)
downloadcmake-0ae07800557bef97c43ddd64f144b258b8fdd5dc.tar.gz
BUG 9961: ctest --help should not display a Generators section
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r--Source/cmDocumentation.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 93eb1999e3..fc2fb14f55 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -267,6 +267,8 @@ cmDocumentation::cmDocumentation()
this->VariableSections.push_back("Variables That Describe the System");
this->VariableSections.push_back("Variables that Control the Build");
this->VariableSections.push_back("Variables for Languages");
+
+ this->ShowGenerators = true;
}
//----------------------------------------------------------------------------
@@ -1279,7 +1281,10 @@ bool cmDocumentation::PrintDocumentationUsage(std::ostream& os)
this->ClearSections();
this->AddSectionToPrint("Usage");
this->AddSectionToPrint("Options");
- this->AddSectionToPrint("Generators");
+ if(this->ShowGenerators)
+ {
+ this->AddSectionToPrint("Generators");
+ }
this->Print(os);
return true;
}