summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-07-08 01:52:10 (GMT)
committerBrad King <brad.king@kitware.com>2003-07-08 01:52:10 (GMT)
commite5ed57ec18e1cd1d460bd77391db15a5d4afdcc1 (patch)
tree1a6c2c3b22eb90c0dfd647e08b05aea8f603f439 /Source/cmakemain.cxx
parentcbb1de923a3fb977f3910d4054191cdffc478134 (diff)
downloadCMake-e5ed57ec18e1cd1d460bd77391db15a5d4afdcc1.zip
CMake-e5ed57ec18e1cd1d460bd77391db15a5d4afdcc1.tar.gz
CMake-e5ed57ec18e1cd1d460bd77391db15a5d4afdcc1.tar.bz2
ENH: Registered global generators are now kept in a table in the cmake instance. Added support for documentation with a Generators section.
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 299a954..0d35894 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -98,10 +98,13 @@ int do_cmake(int ac, char** av)
// Construct and print requested documentation.
cmake hcm;
std::vector<cmDocumentationEntry> commands;
+ std::vector<cmDocumentationEntry> generators;
hcm.GetCommandDocumentation(commands);
+ hcm.GetGeneratorDocumentation(generators);
doc.SetNameSection(cmDocumentationName);
doc.SetUsageSection(cmDocumentationUsage);
doc.SetDescriptionSection(cmDocumentationDescription);
+ doc.SetGeneratorsSection(&generators[0]);
doc.SetOptionsSection(cmDocumentationOptions);
doc.SetCommandsSection(&commands[0]);
doc.PrintDocumentation(ht, std::cout);