summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2019-04-06 09:53:58 (GMT)
committerBrad King <brad.king@kitware.com>2019-04-15 15:06:06 (GMT)
commit536cca60ea1c037d751b03bf5da8385783856000 (patch)
tree5b3e22733a4ae2f729a3e358175ee5b69b7a5d6e /Help
parentdb6fdfdb053a372382ff8eadad9bfa47c1a3b4bc (diff)
downloadCMake-536cca60ea1c037d751b03bf5da8385783856000.zip
CMake-536cca60ea1c037d751b03bf5da8385783856000.tar.gz
CMake-536cca60ea1c037d751b03bf5da8385783856000.tar.bz2
string: introduce `REPEAT` sub-command
Diffstat (limited to 'Help')
-rw-r--r--Help/command/string.rst9
-rw-r--r--Help/release/dev/string-repeat.rst4
2 files changed, 13 insertions, 0 deletions
diff --git a/Help/command/string.rst b/Help/command/string.rst
index 893fb43..2e89d7b 100644
--- a/Help/command/string.rst
+++ b/Help/command/string.rst
@@ -28,6 +28,7 @@ Synopsis
string(`SUBSTRING`_ <string> <begin> <length> <out-var>)
string(`STRIP`_ <string> <out-var>)
string(`GENEX_STRIP`_ <string> <out-var>)
+ string(`REPEAT`_ <string> <count> <out-var>)
`Comparison`_
string(`COMPARE`_ <op> <string1> <string2> <out-var>)
@@ -269,6 +270,14 @@ trailing spaces removed.
Strip any :manual:`generator expressions <cmake-generator-expressions(7)>`
from the ``input string`` and store the result in the ``output variable``.
+.. _REPEAT:
+
+.. code-block:: cmake
+
+ string(REPEAT <input string> <count> <output variable>)
+
+Produce the output string as repetion of ``input string`` ``count`` times.
+
Comparison
^^^^^^^^^^
diff --git a/Help/release/dev/string-repeat.rst b/Help/release/dev/string-repeat.rst
new file mode 100644
index 0000000..4be0d5c
--- /dev/null
+++ b/Help/release/dev/string-repeat.rst
@@ -0,0 +1,4 @@
+string-repeat
+--------------
+
+* The :command:`string` learned a new sub-command ``REPEAT``.