mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-15 20:46:37 +08:00
Help: Behavior of file(TO_NATIVE_PATH) depends on the host platform
This commit is contained in:
@@ -922,7 +922,8 @@ system search path like ``$ENV{PATH}``. A search path will be converted
|
|||||||
to a cmake-style list separated by ``;`` characters.
|
to a cmake-style list separated by ``;`` characters.
|
||||||
|
|
||||||
The ``TO_NATIVE_PATH`` mode converts a cmake-style ``<path>`` into a native
|
The ``TO_NATIVE_PATH`` mode converts a cmake-style ``<path>`` into a native
|
||||||
path with platform-specific slashes (``\`` on Windows and ``/`` elsewhere).
|
path with platform-specific slashes (``\`` on Windows hosts and ``/``
|
||||||
|
elsewhere).
|
||||||
|
|
||||||
Always use double quotes around the ``<path>`` to be sure it is treated
|
Always use double quotes around the ``<path>`` to be sure it is treated
|
||||||
as a single argument to this command.
|
as a single argument to this command.
|
||||||
|
Reference in New Issue
Block a user