On-demand trace support
Targeting more effective development and debugging of CMake scripts, I would like the equivalent of bash set -x
, set +x
, i.e. set a variable in the script being developed to enable tracing of script execution on demand.
Essentially,
set(CMAKE_TRACE ON)
or
set(CMAKE_TRACE_EXPAND ON)
Enables the equivalent of cmake --trace
or cmake --trace-expand
until disabled.
What do you think?