New in version 3.2.

Continue to the top of enclosing foreach or while loop.


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

See also the break() command.