summaryrefslogtreecommitdiffstats
path: root/Help/command/endif.rst
blob: fc4f0382251df127495d0be503bfd7515dc7972b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
endif
-----

Ends a list of commands in an if block.

.. code-block:: cmake

  endif([<condition>])

See the :command:`if` command.

The optional ``<condition>`` argument is supported for backward compatibility
only. If used it must be a verbatim repeat of the argument of the opening
``if`` clause.