diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2009-11-24 16:46:06 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2009-11-24 16:46:06 (GMT) |
commit | 0ae07800557bef97c43ddd64f144b258b8fdd5dc (patch) | |
tree | 11e25227b2346357e92d9eb0f077d7c05ee313bc /Source/cmDocumentation.cxx | |
parent | bb187903979d20c8b8a5ed07276c6af122bad781 (diff) | |
download | CMake-0ae07800557bef97c43ddd64f144b258b8fdd5dc.zip CMake-0ae07800557bef97c43ddd64f144b258b8fdd5dc.tar.gz CMake-0ae07800557bef97c43ddd64f144b258b8fdd5dc.tar.bz2 |
BUG 9961: ctest --help should not display a Generators section
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r-- | Source/cmDocumentation.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx index 93eb199..fc2fb14 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; } |