diff options
author | Stefan Kislinskiy <s.kislinskiy@dkfz-heidelberg.de> | 2015-09-24 10:33:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-28 14:37:33 (GMT) |
commit | ca6ba3fee544997b72579e97f9c64eb1a24a7fc9 (patch) | |
tree | 25bf04ef772fdbaeb1eb13f14454384873e3e968 /Help | |
parent | 7de868c4d7c8bfe35d201ed480328f3177a1325b (diff) | |
download | CMake-ca6ba3fee544997b72579e97f9c64eb1a24a7fc9.zip CMake-ca6ba3fee544997b72579e97f9c64eb1a24a7fc9.tar.gz CMake-ca6ba3fee544997b72579e97f9c64eb1a24a7fc9.tar.bz2 |
Genex: Add a SHELL_PATH expression
Some commands on Windows do not understand forward slash paths and
require backslashes. In order to help projects generate shell
invocations of such commands, provide a generator expression to convert
paths to the shell-preferred path format for the current generator.
This will allow custom commands to generate paths the same way CMake
does for compiler command invocations.
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-generator-expressions.7.rst | 4 | ||||
-rw-r--r-- | Help/release/dev/genex-SHELL_PATH.rst | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index 189c3ef..13ee4bd 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -278,3 +278,7 @@ Available output expressions are: object of type ``OBJECT_LIBRARY``. This expression may only be used in the sources of :command:`add_library` and :command:`add_executable` commands. +``$<SHELL_PATH:...>`` + 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. diff --git a/Help/release/dev/genex-SHELL_PATH.rst b/Help/release/dev/genex-SHELL_PATH.rst new file mode 100644 index 0000000..86af720 --- /dev/null +++ b/Help/release/dev/genex-SHELL_PATH.rst @@ -0,0 +1,6 @@ +genex-SHELL_PATH +---------------- + +* A new ``$<SHELL_PATH:...>`` + :manual:`generator expression <cmake-generator-expressions(7)>` + has been added. |