summaryrefslogtreecommitdiffstats
path: root/Help/command/endif.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/command/endif.rst')
-rw-r--r--Help/command/endif.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/Help/command/endif.rst b/Help/command/endif.rst
index a0163bf..fc4f038 100644
--- a/Help/command/endif.rst
+++ b/Help/command/endif.rst
@@ -3,8 +3,12 @@ endif
Ends a list of commands in an if block.
-::
+.. code-block:: cmake
- endif(expression)
+ 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.