summaryrefslogtreecommitdiffstats
path: root/Help/command/foreach.rst
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2019-11-04 15:11:07 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2019-11-06 14:14:47 (GMT)
commit53227a4ff27c6eda7cb5b3b283f96d1f2d2d56ca (patch)
tree92e127c69389bae8ae45f39019a70e68374f3b50 /Help/command/foreach.rst
parente3afdef8c567880d7c83ca5980e4c5f5d289880c (diff)
downloadCMake-53227a4ff27c6eda7cb5b3b283f96d1f2d2d56ca.zip
CMake-53227a4ff27c6eda7cb5b3b283f96d1f2d2d56ca.tar.gz
CMake-53227a4ff27c6eda7cb5b3b283f96d1f2d2d56ca.tar.bz2
Refactor: Modernize `foreach` code and fix some bugs
- fix the typo in `foreach` documentation - fix broken `foreach(... IN ITEMS ... LISTS ...)` - add tests of `foreach` for existed functionality and fixes
Diffstat (limited to 'Help/command/foreach.rst')
-rw-r--r--Help/command/foreach.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Help/command/foreach.rst b/Help/command/foreach.rst
index ae2afb2..ecbfed3 100644
--- a/Help/command/foreach.rst
+++ b/Help/command/foreach.rst
@@ -47,7 +47,7 @@ of undocumented behavior that may change in future releases.
.. code-block:: cmake
- foreach(loop_var IN [LISTS [<lists>]] [ITEMS [<items>]])
+ foreach(<loop_var> IN [LISTS [<lists>]] [ITEMS [<items>]])
In this variant, ``<lists>`` is a whitespace or semicolon
separated list of list-valued variables. The ``foreach``