summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-27 12:17:42 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-05-27 12:17:49 (GMT)
commit3a9b257ee75e5eac8aea023cc23ad6d3c1b6abdf (patch)
tree6a6db5326f5a682c3551e80ba13f88c4f58ff170 /Help/command
parent0bc408bad59e50f3a818c8018312f730fe003bbc (diff)
parent12e483c5633340078a81507a0a81e2cfc34482a5 (diff)
downloadCMake-3a9b257ee75e5eac8aea023cc23ad6d3c1b6abdf.zip
CMake-3a9b257ee75e5eac8aea023cc23ad6d3c1b6abdf.tar.gz
CMake-3a9b257ee75e5eac8aea023cc23ad6d3c1b6abdf.tar.bz2
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/command')
-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 21f51a0..0988097 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
^^^^^^^^^^^^^^^