mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-11 17:49:38 -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
6 lines
59 B
CMake
6 lines
59 B
CMake
foreach(v IN)
|
|
endforeach()
|
|
|
|
foreach(v1 v2 IN)
|
|
endforeach()
|