diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-01 19:51:05 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-01 19:51:05 (GMT) |
commit | d58b93a5b128ad4f2dce47e8a2c0dd967378e2f2 (patch) | |
tree | 7c49f3066a956adc8b2b754171f77cfebc903827 /Source/MFCDialog/CMakeSetup.cpp | |
parent | ea874415d9f1a1058aadb38c6987b18d8b3324f5 (diff) | |
download | CMake-d58b93a5b128ad4f2dce47e8a2c0dd967378e2f2.zip CMake-d58b93a5b128ad4f2dce47e8a2c0dd967378e2f2.tar.gz CMake-d58b93a5b128ad4f2dce47e8a2c0dd967378e2f2.tar.bz2 |
ENH: separate the commands into current and compat as in cmake
Alex
Diffstat (limited to 'Source/MFCDialog/CMakeSetup.cpp')
-rw-r--r-- | Source/MFCDialog/CMakeSetup.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/MFCDialog/CMakeSetup.cpp b/Source/MFCDialog/CMakeSetup.cpp index a65d00d..3f59257 100644 --- a/Source/MFCDialog/CMakeSetup.cpp +++ b/Source/MFCDialog/CMakeSetup.cpp @@ -111,17 +111,24 @@ BOOL CMakeSetup::InitInstance() { // Construct and print requested documentation. cmake hcm; + hcm.AddCMakePaths(cmdInfo.GetArgV()[0]); + doc.SetCMakeRoot(hcm.GetCacheDefinition("CMAKE_ROOT")); std::vector<cmDocumentationEntry> commands; + std::vector<cmDocumentationEntry> compatCommands; + std::vector<cmDocumentationEntry> generators; - hcm.GetCommandDocumentation(commands); + hcm.GetCommandDocumentation(commands, true, false); + hcm.GetCommandDocumentation(compatCommands, false, true); hcm.GetGeneratorDocumentation(generators); - doc.SetName("CMakeSetup"); + doc.SetName("cmake"); doc.SetNameSection(cmDocumentationName); doc.SetUsageSection(cmDocumentationUsage); doc.SetDescriptionSection(cmDocumentationDescription); doc.SetGeneratorsSection(&generators[0]); doc.SetOptionsSection(cmDocumentationOptions); doc.SetCommandsSection(&commands[0]); + doc.SetCompatCommandsSection(&compatCommands[0]); + return (doc.PrintRequestedDocumentation(std::cout)? 0:1); } |