summaryrefslogtreecommitdiff
path: root/Help/command/continue.rst
blob: e8012ee3037f13d9112de684c4d63635b2e49c5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
continue
--------

.. versionadded:: 3.2

Continue to the top of enclosing foreach or while loop.

.. code-block:: cmake

  continue()

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

See also the :command:`break` command.