summaryrefslogtreecommitdiff
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-27 12:17:42 +0000
committerKitware Robot <kwrobot@kitware.com>2020-05-27 08:17:49 -0400
commit3a9b257ee75e5eac8aea023cc23ad6d3c1b6abdf (patch)
tree6a6db5326f5a682c3551e80ba13f88c4f58ff170 /Help
parent0bc408bad59e50f3a818c8018312f730fe003bbc (diff)
parent12e483c5633340078a81507a0a81e2cfc34482a5 (diff)
downloadcmake-3a9b257ee75e5eac8aea023cc23ad6d3c1b6abdf.tar.gz
Merge topic 'cmake_language-check-invalid-commands'
12e483c563 cmake_language: check CALL with control command Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4788
Diffstat (limited to 'Help')
-rw-r--r--Help/command/cmake_language.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Help/command/cmake_language.rst b/Help/command/cmake_language.rst
index 21f51a0c77..09880975f4 100644
--- a/Help/command/cmake_language.rst
+++ b/Help/command/cmake_language.rst
@@ -42,6 +42,15 @@ is equivalent to
message(STATUS "Hello World!")
+.. note::
+ To ensure consistency of the code, the following commands are not allowed:
+
+ * ``if`` / ``elseif`` / ``else`` / ``endif``
+ * ``while`` / ``endwhile``
+ * ``foreach`` / ``endforeach``
+ * ``function`` / ``endfunction``
+ * ``macro`` / ``endmacro``
+
Evaluating Code
^^^^^^^^^^^^^^^