Tyler Yankee b468b3baf2 trace: Print control structure "end" commands
Enhance `cmake --trace` (and related modes) by adding a backtrace for
the "end" command after "replaying" control structures.

Expand the unit test to include control structures.

Fixes: #27381
2026-01-07 09:21:15 -05:00

12 lines
176 B
CMake

function(testFlowControl)
foreach(i RANGE 1)
if("${i}" STREQUAL "1")
set(foo)
else()
set(bar)
endif()
endforeach()
endfunction()
testFlowControl()