Feature Request: Enable trace mode using variable(s)
As discussed in https://discourse.cmake.org/t/how-to-enable-trace-mode-when-cmake-is-re-run/8033 the only way to enable trace mode is to use command line option(s) (--trace, --trace-expand, --trace-format, --trace-source, --trace-redirect). This means that it's not possible to enable trace mode when CMake is re-run. New variable or set of variables to enable and control trace mode should be added.
For comparison: CMAKE_EXPORT_COMPILE_COMMANDS can be used to enable the creation of compile_commands.json. This works when CMake is re-run.