|
@@ -24,7 +24,7 @@
|
|
|
#include "cmBuildOptions.h"
|
|
#include "cmBuildOptions.h"
|
|
|
#include "cmCommandLineArgument.h"
|
|
#include "cmCommandLineArgument.h"
|
|
|
#include "cmConsoleBuf.h"
|
|
#include "cmConsoleBuf.h"
|
|
|
-#include "cmDocumentationEntry.h" // IWYU pragma: keep
|
|
|
|
|
|
|
+#include "cmDocumentationEntry.h"
|
|
|
#include "cmGlobalGenerator.h"
|
|
#include "cmGlobalGenerator.h"
|
|
|
#include "cmMakefile.h"
|
|
#include "cmMakefile.h"
|
|
|
#include "cmMessageMetadata.h"
|
|
#include "cmMessageMetadata.h"
|
|
@@ -46,12 +46,11 @@
|
|
|
|
|
|
|
|
namespace {
|
|
namespace {
|
|
|
#ifndef CMAKE_BOOTSTRAP
|
|
#ifndef CMAKE_BOOTSTRAP
|
|
|
-const char* cmDocumentationName[][2] = {
|
|
|
|
|
- { nullptr, " cmake - Cross-Platform Makefile Generator." },
|
|
|
|
|
- { nullptr, nullptr }
|
|
|
|
|
|
|
+const cmDocumentationEntry cmDocumentationName = {
|
|
|
|
|
+ nullptr, " cmake - Cross-Platform Makefile Generator."
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-const char* cmDocumentationUsage[][2] = {
|
|
|
|
|
|
|
+const cmDocumentationEntry cmDocumentationUsage[2] = {
|
|
|
{ nullptr,
|
|
{ nullptr,
|
|
|
" cmake [options] <path-to-source>\n"
|
|
" cmake [options] <path-to-source>\n"
|
|
|
" cmake [options] <path-to-existing-build>\n"
|
|
" cmake [options] <path-to-existing-build>\n"
|
|
@@ -59,17 +58,14 @@ const char* cmDocumentationUsage[][2] = {
|
|
|
{ nullptr,
|
|
{ nullptr,
|
|
|
"Specify a source directory to (re-)generate a build system for "
|
|
"Specify a source directory to (re-)generate a build system for "
|
|
|
"it in the current working directory. Specify an existing build "
|
|
"it in the current working directory. Specify an existing build "
|
|
|
- "directory to re-generate its build system." },
|
|
|
|
|
- { nullptr, nullptr }
|
|
|
|
|
|
|
+ "directory to re-generate its build system." }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-const char* cmDocumentationUsageNote[][2] = {
|
|
|
|
|
- { nullptr, "Run 'cmake --help' for more information." },
|
|
|
|
|
- { nullptr, nullptr }
|
|
|
|
|
|
|
+const cmDocumentationEntry cmDocumentationUsageNote = {
|
|
|
|
|
+ nullptr, "Run 'cmake --help' for more information."
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-const char* cmDocumentationOptions[][2] = {
|
|
|
|
|
- CMAKE_STANDARD_OPTIONS_TABLE,
|
|
|
|
|
|
|
+const cmDocumentationEntry cmDocumentationOptions[31] = {
|
|
|
{ "--preset <preset>,--preset=<preset>", "Specify a configure preset." },
|
|
{ "--preset <preset>,--preset=<preset>", "Specify a configure preset." },
|
|
|
{ "--list-presets[=<type>]", "List available presets." },
|
|
{ "--list-presets[=<type>]", "List available presets." },
|
|
|
{ "-E", "CMake command mode." },
|
|
{ "-E", "CMake command mode." },
|
|
@@ -118,8 +114,7 @@ const char* cmDocumentationOptions[][2] = {
|
|
|
"google-trace" },
|
|
"google-trace" },
|
|
|
{ "--profiling-output=<file>",
|
|
{ "--profiling-output=<file>",
|
|
|
"Select an output path for the profiling data enabled through "
|
|
"Select an output path for the profiling data enabled through "
|
|
|
- "--profiling-format." },
|
|
|
|
|
- { nullptr, nullptr }
|
|
|
|
|
|
|
+ "--profiling-format." }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
#endif
|
|
@@ -226,6 +221,7 @@ int do_cmake(int ac, char const* const* av)
|
|
|
}
|
|
}
|
|
|
doc.AppendSection("Generators", generators);
|
|
doc.AppendSection("Generators", generators);
|
|
|
doc.PrependSection("Options", cmDocumentationOptions);
|
|
doc.PrependSection("Options", cmDocumentationOptions);
|
|
|
|
|
+ doc.PrependSection("Options", cmake::CMAKE_STANDARD_OPTIONS_TABLE);
|
|
|
|
|
|
|
|
return !doc.PrintRequestedDocumentation(std::cout);
|
|
return !doc.PrintRequestedDocumentation(std::cout);
|
|
|
}
|
|
}
|