diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-11-30 11:48:26 (GMT) |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-12-23 13:05:36 (GMT) |
commit | 482497e0debc3de9f125c8c849a40872971a4a7e (patch) | |
tree | 2ae4aefba1e626668e411c53399cc241662e18d7 /Source/cmakemain.cxx | |
parent | 10fea25139cc302ef0f0a41aa68b44cda72a4fd2 (diff) | |
download | CMake-482497e0debc3de9f125c8c849a40872971a4a7e.zip CMake-482497e0debc3de9f125c8c849a40872971a4a7e.tar.gz CMake-482497e0debc3de9f125c8c849a40872971a4a7e.tar.bz2 |
trace: Add JSON output format
Add a new `--trace-format=` flag, to enable the new JSON trace
output format. This new format is easier to parse by machines
than the existing format. This new format also removes the
ambiguity of the whitespace in the "old" format (e.g. is that
whitespace part of a file path, or does it seperate arguments)
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 0fc39ba..9dd8831 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -81,6 +81,7 @@ const char* cmDocumentationOptions[][2] = { { "--debug-output", "Put cmake in a debug mode." }, { "--trace", "Put cmake in trace mode." }, { "--trace-expand", "Put cmake in trace mode with variable expansion." }, + { "--trace-format=<human|json-v1>", "Set the output format of the trace." }, { "--trace-source=<file>", "Trace only this CMake file/module. Multiple options allowed." }, { "--trace-redirect=<file>", |