2015-04-27 22:25:09 +02:00
|
|
|
continue
|
|
|
|
--------
|
|
|
|
|
2021-09-14 00:13:48 +02:00
|
|
|
.. versionadded:: 3.2
|
|
|
|
|
2015-04-27 22:25:09 +02:00
|
|
|
Continue to the top of enclosing foreach or while loop.
|
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
.. code-block:: cmake
|
2015-04-27 22:25:09 +02:00
|
|
|
|
|
|
|
continue()
|
|
|
|
|
|
|
|
The ``continue`` command allows a cmake script to abort the rest of a block
|
|
|
|
in a :command:`foreach` or :command:`while` loop, and start at the top of
|
2019-11-11 23:01:05 +01:00
|
|
|
the next iteration.
|
|
|
|
|
|
|
|
See also the :command:`break` command.
|