continue

From Get docs
Cmake/docs/3.21/command/continue


continue

New in version 3.2.


Continue to the top of enclosing foreach or while loop.

continue()

The continue command allows a cmake script to abort the rest of a block in a foreach() or while() loop, and start at the top of the next iteration.

See also the break() command.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/command/continue.html