mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-10 17:14:10 +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()
|