summaryrefslogtreecommitdiff
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
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;
}