summaryrefslogtreecommitdiff
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2015-07-21 17:18:53 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2015-07-23 15:33:10 -0400
commit594bafe52773c940fc3fb9cd9022a4d1a3a194c7 (patch)
tree9ba8747bc0a23a46abe7035e8f507b647573fbd9 /Source/cmakemain.cxx
parent265b9db7c2c865c5aad821bf9a377ea84dfe431e (diff)
downloadcmake-594bafe52773c940fc3fb9cd9022a4d1a3a194c7.tar.gz
cmake: add --trace-expand option
The --trace option is helpful, but sometimes, what you're looking for is deep under many layers of function calls and figuring out what instance of the function call you're looking at is tedious to determine (usually involving patching and message()). Instead, add a --trace-expand option to trace while expanding commands into what CMake actually sees.
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index c94ffec065..a06b26fc69 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -83,6 +83,7 @@ static const char * cmDocumentationOptions[][2] =
"useful on one try_compile at a time."},
{"--debug-output", "Put cmake in a debug mode."},
{"--trace", "Put cmake in trace mode."},
+ {"--trace-expand", "Put cmake in trace mode with variable expansion."},
{"--warn-uninitialized", "Warn about uninitialized values."},
{"--warn-unused-vars", "Warn about unused variables."},
{"--no-warn-unused-cli", "Don't warn about command line options."},