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:19 (GMT) |
commit | 2d8aeaca07ecbcff6e5ac59f462fe99d656a3fce (patch) | |
tree | 161b69132f5612a8614a403a4dcd9ed9b598e443 | |
parent | b5c54d9c8a1fdfdbf1a133040029a4924b69185e (diff) | |
parent | 3ab132d86f25d5ae1ff20adcb1a4a1de7c937408 (diff) | |
download | CMake-2d8aeaca07ecbcff6e5ac59f462fe99d656a3fce.zip CMake-2d8aeaca07ecbcff6e5ac59f462fe99d656a3fce.tar.gz CMake-2d8aeaca07ecbcff6e5ac59f462fe99d656a3fce.tar.bz2 |
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
-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. |