summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog/CMakeSetup.cpp
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-10-24 15:36:47 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-10-24 15:36:47 (GMT)
commitc2f0aac146f6b990940240891b959dc1f394e80c (patch)
treeeeda2906ff2af93817dd86f95648e78d90fde45d /Source/MFCDialog/CMakeSetup.cpp
parent328615716c97531b7ccdb2b35679fe828ed27e0c (diff)
downloadCMake-c2f0aac146f6b990940240891b959dc1f394e80c.zip
CMake-c2f0aac146f6b990940240891b959dc1f394e80c.tar.gz
CMake-c2f0aac146f6b990940240891b959dc1f394e80c.tar.bz2
ENH: some more cleanup, fixes, and patch for HTML output
Diffstat (limited to 'Source/MFCDialog/CMakeSetup.cpp')
-rw-r--r--Source/MFCDialog/CMakeSetup.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/MFCDialog/CMakeSetup.cpp b/Source/MFCDialog/CMakeSetup.cpp
index 63fa23d..6d25ba2 100644
--- a/Source/MFCDialog/CMakeSetup.cpp
+++ b/Source/MFCDialog/CMakeSetup.cpp
@@ -115,19 +115,22 @@ BOOL CMakeSetup::InitInstance()
doc.SetCMakeRoot(hcm.GetCacheDefinition("CMAKE_ROOT"));
std::vector<cmDocumentationEntry> commands;
std::vector<cmDocumentationEntry> compatCommands;
+ std::map<std::string,cmDocumentationSection *> propDocs;
std::vector<cmDocumentationEntry> generators;
hcm.GetCommandDocumentation(commands, true, false);
hcm.GetCommandDocumentation(compatCommands, false, true);
hcm.GetGeneratorDocumentation(generators);
+ hcm.GetPropertiesDocumentation(propDocs);
doc.SetName("cmake");
doc.SetSection("Name",cmDocumentationName);
doc.SetSection("Usage",cmDocumentationUsage);
doc.SetSection("Description",cmDocumentationDescription);
- doc.SetSection("Generators",generators);
- doc.SetSection("Options",cmDocumentationOptions);
+ doc.AppendSection("Generators",generators);
+ doc.PrependSection("Options",cmDocumentationOptions);
doc.SetSection("Commands",commands);
doc.SetSection("Compatilbility Commands", compatCommands);
+ doc.SetSections(propDocs);
return (doc.PrintRequestedDocumentation(std::cout)? 0:1);
}