mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-01-29 12:24:29 +00:00
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
12 lines
176 B
CMake
12 lines
176 B
CMake
function(testFlowControl)
|
|
foreach(i RANGE 1)
|
|
if("${i}" STREQUAL "1")
|
|
set(foo)
|
|
else()
|
|
set(bar)
|
|
endif()
|
|
endforeach()
|
|
endfunction()
|
|
|
|
testFlowControl()
|