summaryrefslogtreecommitdiffstats
path: root/Source/cmGetFilenameComponentCommand.h
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-10-23 21:49:13 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-10-23 21:49:13 (GMT)
commitcc731ac54853118438bee0f9f5d9df2287ec615b (patch)
tree67873db2bdb02a82893100afa0312486f13b4de1 /Source/cmGetFilenameComponentCommand.h
parent10c54eb2a509e7d8e634c6c38b67f725093413cd (diff)
downloadCMake-cc731ac54853118438bee0f9f5d9df2287ec615b.zip
CMake-cc731ac54853118438bee0f9f5d9df2287ec615b.tar.gz
CMake-cc731ac54853118438bee0f9f5d9df2287ec615b.tar.bz2
The result of this utility command can now be optionally added to the cache
Diffstat (limited to 'Source/cmGetFilenameComponentCommand.h')
-rw-r--r--Source/cmGetFilenameComponentCommand.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmGetFilenameComponentCommand.h b/Source/cmGetFilenameComponentCommand.h
index 19b8873..807659d 100644
--- a/Source/cmGetFilenameComponentCommand.h
+++ b/Source/cmGetFilenameComponentCommand.h
@@ -48,7 +48,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* cmGetFilenameComponentCommand is a utility command used to get the path,
* name, extension or name without extension of a full filename.
- * Warning: as a utility command, the resulting value is not put in the cache.
*/
class cmGetFilenameComponentCommand : public cmCommand
{
@@ -92,11 +91,14 @@ public:
virtual const char* GetFullDocumentation()
{
return
- "GET_FILENAME_COMPONENT(VarName FileName PATH|NAME|EXT|NAME_WE)\n"
+ "GET_FILENAME_COMPONENT(VarName FileName PATH|NAME|EXT|NAME_WE [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.";
+ "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.";
}
cmTypeMacro(cmGetFilenameComponentCommand, cmCommand);