mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'doc-if-exists' into release-3.27
3ab132d86f Help: Document that if(EXISTS) requires paths to be readable
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8656
This commit is contained in:
@@ -170,9 +170,9 @@ File Operations
|
|||||||
|
|
||||||
.. signature:: if(EXISTS <path-to-file-or-directory>)
|
.. signature:: if(EXISTS <path-to-file-or-directory>)
|
||||||
|
|
||||||
True if the named file or directory exists. Behavior is well-defined
|
True if the named file or directory exists and is readable. Behavior
|
||||||
only for explicit full paths (a leading ``~/`` is not expanded as
|
is well-defined only for explicit full paths (a leading ``~/`` is not
|
||||||
a home directory and is considered a relative path).
|
expanded as a home directory and is considered a relative path).
|
||||||
Resolves symbolic links, i.e. if the named file or directory is a
|
Resolves symbolic links, i.e. if the named file or directory is a
|
||||||
symbolic link, returns true if the target of the symbolic link exists.
|
symbolic link, returns true if the target of the symbolic link exists.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user