allow flags to be in the CC and CXX environment variables

This commit is contained in:
Bill Hoffman
2002-11-19 18:17:17 -05:00
parent 939035ad91
commit 5a75e03037
7 changed files with 101 additions and 17 deletions
+6 -2
View File
@@ -67,14 +67,18 @@ public:
virtual const char* GetFullDocumentation()
{
return
"GET_FILENAME_COMPONENT(VarName FileName PATH|NAME|EXT|NAME_WE [CACHE])\n"
"GET_FILENAME_COMPONENT(VarName FileName PATH|NAME|EXT|NAME_WE|PROGRAM [PROGRAM_ARGS ArgVarName] [CACHE])\n"
"Set VarName to be the path (PATH), file name (NAME), file "
"extension (EXT) or file name without extension (NAME_WE) of FileName.\n"
"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.";
"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.";
}
cmTypeMacro(cmGetFilenameComponentCommand, cmCommand);