mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 12:19:41 -06:00
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
15 KiB
15 KiB