Files
CMake/Source/cmForEachCommand.cxx
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

15 KiB