summaryrefslogtreecommitdiff
path: root/share/cmake-3.6/Help/command/while.rst
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.6/Help/command/while.rst')
-rwxr-xr-xshare/cmake-3.6/Help/command/while.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/share/cmake-3.6/Help/command/while.rst b/share/cmake-3.6/Help/command/while.rst
new file mode 100755
index 0000000..7509da3
--- /dev/null
+++ b/share/cmake-3.6/Help/command/while.rst
@@ -0,0 +1,17 @@
+while
+-----
+
+Evaluate a group of commands while a condition is true
+
+::
+
+ while(condition)
+ COMMAND1(ARGS ...)
+ COMMAND2(ARGS ...)
+ ...
+ endwhile(condition)
+
+All commands between while and the matching :command:`endwhile` are recorded
+without being invoked. Once the :command:`endwhile` is evaluated, the
+recorded list of commands is invoked as long as the condition is true. The
+condition is evaluated using the same logic as the :command:`if` command.