mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Genex: Teach SHELL_PATH to support a list of paths
Extend the genex added by commit ca6ba3fee5 (Genex: Add a SHELL_PATH
expression, 2015-09-24, v3.4.0-rc1~37^2) to accept a `;`-list of paths,
convert them all, and generate a list separated by the native shell
`PATH``` separator.
This commit is contained in:
@@ -455,6 +455,11 @@ Output-Related Expressions
|
||||
Content of ``...`` converted to shell path style. For example, slashes are
|
||||
converted to backslashes in Windows shells and drive letters are converted
|
||||
to posix paths in MSYS shells. The ``...`` must be an absolute path.
|
||||
The ``...`` may be a :ref:`semicolon-separated list <CMake Language Lists>`
|
||||
of paths, in which case each path is converted individually and a result
|
||||
list is generated using the shell path separator (``:`` on POSIX and
|
||||
``;`` on Windows). Be sure to enclose the argument containing this genex
|
||||
in double quotes in CMake source code so that ``;`` does not split arguments.
|
||||
|
||||
Debugging
|
||||
=========
|
||||
|
||||
5
Help/release/dev/shell_path.rst
Normal file
5
Help/release/dev/shell_path.rst
Normal file
@@ -0,0 +1,5 @@
|
||||
shell_path
|
||||
----------
|
||||
|
||||
* The ``$<SHELL_PATH:...>`` :manual:`generator expression
|
||||
<cmake-generator-expressions(7)>` gained support for a list of paths.
|
||||
Reference in New Issue
Block a user