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
This commit is contained in:
Brad King
2020-05-27 12:17:42 +00:00
committed by Kitware Robot
9 changed files with 175 additions and 0 deletions
+9
View File
@@ -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
^^^^^^^^^^^^^^^