mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03: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()
|