summaryrefslogtreecommitdiffstats
path: root/Help/command/if.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-04-04 16:51:34 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-04-04 16:51:41 (GMT)
commit8c28e63cb4da99dbb894573a996c27e260b5baeb (patch)
treef986fe02e32eb1f93513aa6cac4cac363c7af4f0 /Help/command/if.rst
parent56abc31270cbe60845021107383f1cede0ed075e (diff)
parent78ac8cb04a0723b10a9225e97a9e04c126a38a99 (diff)
downloadCMake-8c28e63cb4da99dbb894573a996c27e260b5baeb.zip
CMake-8c28e63cb4da99dbb894573a996c27e260b5baeb.tar.gz
CMake-8c28e63cb4da99dbb894573a996c27e260b5baeb.tar.bz2
Merge topic 'if-EXISTS-doc'
78ac8cb04a Help: clarify if(EXISTS) operation for symlinks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3189
Diffstat (limited to 'Help/command/if.rst')
-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 f377f2c..d8e3a45 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