diff options
author | Brad King <brad.king@kitware.com> | 2021-01-27 13:59:10 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-01-27 13:59:16 (GMT) |
commit | 801ea881b31ab4b6bd9da7d114647e3bf7d745b0 (patch) | |
tree | 5dd1c35468accc1fe05929ffafc990a83be1770e | |
parent | 675d81be6c728d21b78314f763ba060855b1366b (diff) | |
parent | e63e83d2b8478ffa71891cffe61df70c97416f79 (diff) | |
download | CMake-801ea881b31ab4b6bd9da7d114647e3bf7d745b0.zip CMake-801ea881b31ab4b6bd9da7d114647e3bf7d745b0.tar.gz CMake-801ea881b31ab4b6bd9da7d114647e3bf7d745b0.tar.bz2 |
Merge topic 'doc-if'
e63e83d2b8 Help: Document that if(EXISTS) does not expand ~
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5742
-rw-r--r-- | Help/command/if.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst index c51d2bc..5dabe00 100644 --- a/Help/command/if.rst +++ b/Help/command/if.rst @@ -119,9 +119,10 @@ File Operations ``if(EXISTS path-to-file-or-directory)`` True if the named file or directory exists. Behavior is well-defined - 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. + 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. ``if(file1 IS_NEWER_THAN file2)`` True if ``file1`` is newer than ``file2`` or if one of the two files doesn't |