mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 13:19:51 -05:00
Merge topic 'list-join'
a58158727b list(): add `JOIN` sub-command
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1846
This commit is contained in:
@@ -54,6 +54,17 @@ GET
|
||||
|
||||
Returns the list of elements specified by indices from the list.
|
||||
|
||||
JOIN
|
||||
""""
|
||||
|
||||
::
|
||||
|
||||
list(JOIN <list> <glue> <output variable>)
|
||||
|
||||
Returns a string joining all list's elements using the glue string.
|
||||
To join multiple strings, which are not part of a list, use ``JOIN`` operator
|
||||
from :command:`string` command.
|
||||
|
||||
Search
|
||||
^^^^^^
|
||||
|
||||
|
||||
@@ -161,6 +161,10 @@ JOIN
|
||||
Join all the input arguments together using the glue
|
||||
string and store the result in the named output variable.
|
||||
|
||||
To join list's elements, use preferably the ``JOIN`` operator
|
||||
from :command:`list` command. This allows for the elements to have
|
||||
special characters like ``;`` in them.
|
||||
|
||||
TOLOWER
|
||||
"""""""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user