diff options
author | Brad King <brad.king@kitware.com> | 2009-02-09 09:23:55 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-02-09 09:23:55 -0500 |
commit | ae873d4a8987fc840d7b7515719d438918ea8f5b (patch) | |
tree | fa5cbf6ec67c6faa059de0ff61ccc5f2fc13a970 /Source/cmGetFilenameComponentCommand.h | |
parent | ca096a4596c8993cbadd5fc6e612ac349db6355c (diff) | |
download | cmake-ae873d4a8987fc840d7b7515719d438918ea8f5b.tar.gz |
ENH: Add get_filename_component(... REALPATH)
This patch from Philip Lowman creates a REALPATH mode in the
get_filename_component command. It is like ABSOLUTE, but will also
resolve symlinks (which ABSOLUTE once did but was broken long ago).
See issue #8423.
Diffstat (limited to 'Source/cmGetFilenameComponentCommand.h')
-rw-r--r-- | Source/cmGetFilenameComponentCommand.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGetFilenameComponentCommand.h b/Source/cmGetFilenameComponentCommand.h index e058e0be20..65cf1a2304 100644 --- a/Source/cmGetFilenameComponentCommand.h +++ b/Source/cmGetFilenameComponentCommand.h @@ -68,11 +68,12 @@ public: { return " get_filename_component(VarName FileName\n" - " PATH|ABSOLUTE|NAME|EXT|NAME_WE\n" + " PATH|ABSOLUTE|NAME|EXT|NAME_WE|REALPATH\n" " [CACHE])\n" "Set VarName to be the path (PATH), file name (NAME), file " "extension (EXT), file name without extension (NAME_WE) of FileName, " - "or the full path (ABSOLUTE). " + "the full path (ABSOLUTE), or the full path with all symlinks " + "resolved (REALPATH). " "Note that the path is converted to Unix slashes format and has no " "trailing slashes. The longest file extension is always considered. " "If the optional CACHE argument is specified, the result variable is " |