summaryrefslogtreecommitdiffstats
path: root/Help/command/string.rst
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2018-02-11 13:20:57 (GMT)
committerBrad King <brad.king@kitware.com>2018-02-16 15:04:47 (GMT)
commit689eeb67cb87a9ed1d91a4971806488d00e68f42 (patch)
tree403880ec3c332705d11c5293940e143fa1a4aa9c /Help/command/string.rst
parente24cda008e3ea1cbb22d17d29c5c39999facb4b7 (diff)
downloadCMake-689eeb67cb87a9ed1d91a4971806488d00e68f42.zip
CMake-689eeb67cb87a9ed1d91a4971806488d00e68f42.tar.gz
CMake-689eeb67cb87a9ed1d91a4971806488d00e68f42.tar.bz2
string: Add JOIN subcommand
This is just like CONCAT but accepts a glue string to put between each value. `JOIN ""` is equivalent to `CONCAT`.
Diffstat (limited to 'Help/command/string.rst')
-rw-r--r--Help/command/string.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Help/command/string.rst b/Help/command/string.rst
index fb3893f..709559d 100644
--- a/Help/command/string.rst
+++ b/Help/command/string.rst
@@ -151,6 +151,16 @@ CONCAT
Concatenate all the input arguments together and store
the result in the named output variable.
+JOIN
+""""
+
+::
+
+ string(JOIN <glue> <output variable> [<input>...])
+
+Join all the input arguments together using the glue
+string and store the result in the named output variable.
+
TOLOWER
"""""""