Commit 07b80021 authored by Brad King's avatar Brad King
Browse files

cmDocumentation: Drop version output from usage and text help

Drop the "cmake version ..." line from the top of usage and text help
formats.  Print it only when requested with --version or similar option.
parent 6e68bc22
......@@ -307,13 +307,6 @@ void cmDocumentation::AddDocumentIntroToPrint(const char* intro[2])
bool cmDocumentation::PrintDocumentation(Type ht, std::ostream& os,
const char* docname)
if ((this->CurrentFormatter->GetForm() != HTMLForm)
&& (this->CurrentFormatter->GetForm() != DocbookForm)
&& (this->CurrentFormatter->GetForm() != ManForm))
// Handle Document Name. docname==0 disables intro.
if (docname)
......@@ -394,7 +387,7 @@ bool cmDocumentation::PrintDocumentation(Type ht, std::ostream& os,
case cmDocumentation::Copyright:
return this->PrintCopyright(os);
case cmDocumentation::Version:
return true;
return this->PrintVersion(os);
default: return false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment