summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-07-26 15:06:53 (GMT)
committerBrad King <brad.king@kitware.com>2023-07-26 15:06:53 (GMT)
commit3ab132d86f25d5ae1ff20adcb1a4a1de7c937408 (patch)
tree161b69132f5612a8614a403a4dcd9ed9b598e443 /Help/command
parentb5c54d9c8a1fdfdbf1a133040029a4924b69185e (diff)
downloadCMake-3ab132d86f25d5ae1ff20adcb1a4a1de7c937408.zip
CMake-3ab132d86f25d5ae1ff20adcb1a4a1de7c937408.tar.gz
CMake-3ab132d86f25d5ae1ff20adcb1a4a1de7c937408.tar.bz2
Help: Document that if(EXISTS) requires paths to be readable
Issue: #25125
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/if.rst6
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.