summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-05-22 15:50:39 (GMT)
committerBrad King <brad.king@kitware.com>2020-05-26 11:27:35 (GMT)
commit12e483c5633340078a81507a0a81e2cfc34482a5 (patch)
treeefe8e531ff731ee9d7d3a2e0d0ed2ea06cd24068 /Help
parent3ed8b663a9fd6e8d6f7ec0571ab1e3530f9156db (diff)
downloadCMake-12e483c5633340078a81507a0a81e2cfc34482a5.zip
CMake-12e483c5633340078a81507a0a81e2cfc34482a5.tar.gz
CMake-12e483c5633340078a81507a0a81e2cfc34482a5.tar.bz2
cmake_language: check CALL with control command
Fixes: #20739
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 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
^^^^^^^^^^^^^^^