[cmake-commits] alex committed CMakeSetup.cpp 1.14 1.15

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Aug 1 15:51:07 EDT 2007


Update of /cvsroot/CMake/CMake/Source/MFCDialog
In directory public:/mounts/ram/cvs-serv14338

Modified Files:
	CMakeSetup.cpp 
Log Message:
ENH: separate the commands into current and compat as in cmake

Alex


Index: CMakeSetup.cpp
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/MFCDialog/CMakeSetup.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- CMakeSetup.cpp	13 Dec 2005 19:14:16 -0000	1.14
+++ CMakeSetup.cpp	1 Aug 2007 19:51:05 -0000	1.15
@@ -111,17 +111,24 @@
     {
     // 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);
     }
   



More information about the Cmake-commits mailing list