summaryrefslogtreecommitdiffstats
path: root/Source/cmGetFilenameComponentCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-02-14 23:47:16 (GMT)
committerBrad King <brad.king@kitware.com>2003-02-14 23:47:16 (GMT)
commita02574158d178615cf8fd642695e5099b6041049 (patch)
treedf9f52770e9c2ff771988ae1a91ec0b2287548da /Source/cmGetFilenameComponentCommand.h
parentdec0b5106611cbccd1f75c1fa3371d66bdd69a47 (diff)
downloadCMake-a02574158d178615cf8fd642695e5099b6041049.zip
CMake-a02574158d178615cf8fd642695e5099b6041049.tar.gz
CMake-a02574158d178615cf8fd642695e5099b6041049.tar.bz2
ENH: Cleaned up documentation and formatted it for use by cmDocumentation.
Diffstat (limited to 'Source/cmGetFilenameComponentCommand.h')
-rw-r--r--Source/cmGetFilenameComponentCommand.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/Source/cmGetFilenameComponentCommand.h b/Source/cmGetFilenameComponentCommand.h
index 73a5a9c..7861606 100644
--- a/Source/cmGetFilenameComponentCommand.h
+++ b/Source/cmGetFilenameComponentCommand.h
@@ -67,19 +67,24 @@ public:
virtual const char* GetFullDocumentation()
{
return
- "GET_FILENAME_COMPONENT(VarName FileName PATH|ABSOLUTE|NAME|EXT|NAME_WE|PROGRAM [PROGRAM_ARGS ArgVarName] [CACHE])\n"
+ " GET_FILENAME_COMPONENT(VarName FileName\n"
+ " PATH|ABSOLUTE|NAME|EXT|NAME_WE\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 absolute (ABSOLUTE) file name without symlinks. "
"Note that the path is converted to Unix slashes format and has no "
- "trailing slashes. The longest file extension is always considered.\n"
- "Warning: as a utility command, the resulting value is not put in the "
- "cache but in the definition list, unless you add the optional CACHE "
- "parameter."
- "For PROGRAM, the program in FileName will be found in the path or if it is "
- "a full path. If PROGRAM_ARGS is present with PROGRAM, then the arguments "
- "are split from the program. This is used to separate a program from its "
- "arguments.";
+ "trailing slashes. The longest file extension is always considered. If "
+ "the optional CACHE argument is specified, the result variable is "
+ "added to the cache.\n"
+ " GET_FILENAME_COMPONENT(VarName FileName\n"
+ " PROGRAM [PROGRAM_ARGS ArgVar]\n"
+ " [CACHE])\n"
+ "The program in FileName will be found in the system search path or "
+ "left as a full path. If PROGRAM_ARGS is present with PROGRAM, then "
+ "any command-line arguments present in the FileName string are split "
+ "from the program name and stored in ArgVar. This is used to separate "
+ "a program name from its arguments in a command line string.";
}
cmTypeMacro(cmGetFilenameComponentCommand, cmCommand);