Files
CMake/Tests/RunCMake/foreach/TrailingIn.cmake
Tyler Yankee 37e27f71bc foreach: Explicitly skip replay without iterations
As written, foreach loops with a trailing `IN` (i.e., no loop
variable(s) given) lead to an assertion error. Handle this case by
exiting early when we know the loop won't execute anything.

Fixes: #27135
2025-08-13 16:29:16 -04:00

6 lines
59 B
CMake

foreach(v IN)
endforeach()
foreach(v1 v2 IN)
endforeach()