mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 08:08:24 -05:00
37e27f71bc
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()
|