浏览代码

Merge topic 'if-EXISTS-doc'

78ac8cb04a Help: clarify if(EXISTS) operation for symlinks

Acked-by: Kitware Robot <[email protected]>
Merge-request: !3189
Brad King 6 年之前
父节点
当前提交
8c28e63cb4
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Help/command/if.rst

+ 3 - 1
Help/command/if.rst

@@ -88,7 +88,9 @@ Possible conditions are:
 
 ``if(EXISTS path-to-file-or-directory)``
  True if the named file or directory exists.  Behavior is well-defined
- only for full paths.
+ only for full paths. 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.
 
 ``if(file1 IS_NEWER_THAN file2)``
  True if ``file1`` is newer than ``file2`` or if one of the two files doesn't