diff options
author | Brad King <brad.king@kitware.com> | 2023-07-27 13:59:09 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-07-27 13:59:20 (GMT) |
commit | c46182cf55bc75bf80dd20484cd31879e1364ce0 (patch) | |
tree | 97b0e532c154dcae3c719fe33e72c7e182cc2375 | |
parent | b8c4607b28a4c1b352914db58ef502176e8d8d17 (diff) | |
parent | 3ab132d86f25d5ae1ff20adcb1a4a1de7c937408 (diff) | |
download | CMake-c46182cf55bc75bf80dd20484cd31879e1364ce0.zip CMake-c46182cf55bc75bf80dd20484cd31879e1364ce0.tar.gz CMake-c46182cf55bc75bf80dd20484cd31879e1364ce0.tar.bz2 |
Merge topic 'doc-if-exists'
3ab132d86f Help: Document that if(EXISTS) requires paths to be readable
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8656
-rw-r--r-- | Help/command/if.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst index be855e1..c47c71b 100644 --- a/Help/command/if.rst +++ b/Help/command/if.rst @@ -170,9 +170,9 @@ File Operations .. signature:: if(EXISTS <path-to-file-or-directory>) - True if the named file or directory exists. Behavior is well-defined - only for explicit full paths (a leading ``~/`` is not expanded as - a home directory and is considered a relative path). + True if the named file or directory exists and is readable. Behavior + is well-defined only for explicit full paths (a leading ``~/`` is not + expanded as a home directory and is considered a relative path). 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. |