mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-17 12:40:40 -06:00
Help: clarify if(EXISTS) operation for symlinks
if(EXISTS) resolves symlinks; note this explicitly in its documentation.
This commit is contained in:
@@ -88,7 +88,9 @@ Possible conditions are:
|
|||||||
|
|
||||||
``if(EXISTS path-to-file-or-directory)``
|
``if(EXISTS path-to-file-or-directory)``
|
||||||
True if the named file or directory exists. Behavior is well-defined
|
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)``
|
``if(file1 IS_NEWER_THAN file2)``
|
||||||
True if ``file1`` is newer than ``file2`` or if one of the two files doesn't
|
True if ``file1`` is newer than ``file2`` or if one of the two files doesn't
|
||||||
|
|||||||
Reference in New Issue
Block a user