summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-04-16 17:39:51 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-04-16 17:40:02 (GMT)
commit3205561b8a04f16d0004f73d0dc5eeffd0c7dd02 (patch)
treeba38e00f2f9e205ec8f682f912c238e2063f1581 /Help/command
parent34975815a8b07879ea10b23e8cb630bb1930a3ee (diff)
parent536cca60ea1c037d751b03bf5da8385783856000 (diff)
downloadCMake-3205561b8a04f16d0004f73d0dc5eeffd0c7dd02.zip
CMake-3205561b8a04f16d0004f73d0dc5eeffd0c7dd02.tar.gz
CMake-3205561b8a04f16d0004f73d0dc5eeffd0c7dd02.tar.bz2
Merge topic 'string-repeat'
536cca60ea string: introduce `REPEAT` sub-command Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3239
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/string.rst9
1 files changed, 9 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
^^^^^^^^^^