mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
string: introduce REPEAT sub-command
This commit is contained in:
@@ -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
|
||||
^^^^^^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user