summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2019-04-04 00:25:52 (GMT)
committerShoaib Meenai <smeenai@fb.com>2019-04-04 00:25:52 (GMT)
commit78ac8cb04a0723b10a9225e97a9e04c126a38a99 (patch)
tree1eb009b207c95b5e04c28715dbd581b77e46f3ff /Help
parent6fdba8b8beb6d971a3c2efe8973cdee970dfd40a (diff)
downloadCMake-78ac8cb04a0723b10a9225e97a9e04c126a38a99.zip
CMake-78ac8cb04a0723b10a9225e97a9e04c126a38a99.tar.gz
CMake-78ac8cb04a0723b10a9225e97a9e04c126a38a99.tar.bz2
Help: clarify if(EXISTS) operation for symlinks
if(EXISTS) resolves symlinks; note this explicitly in its documentation.
Diffstat (limited to 'Help')
-rw-r--r--Help/command/if.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst
index a48a0fa..b79fd6c 100644
--- a/Help/command/if.rst
+++ b/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