summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-03-10 21:53:04 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-03-10 21:53:04 (GMT)
commitac432c7e7ceb86672aa2ee64a7b104d4ad48c464 (patch)
tree4fce9f001b89c2cf7f13638ee37a650a449f52d7 /Source/cmFileCommand.h
parent7387cb58505de65fea2622b443c1cc9d471818a2 (diff)
downloadCMake-ac432c7e7ceb86672aa2ee64a7b104d4ad48c464.zip
CMake-ac432c7e7ceb86672aa2ee64a7b104d4ad48c464.tar.gz
CMake-ac432c7e7ceb86672aa2ee64a7b104d4ad48c464.tar.bz2
ENH: add a new FILE SYSTEM_PATH that allows you to read a environment variable with a path in it.
Diffstat (limited to 'Source/cmFileCommand.h')
-rw-r--r--Source/cmFileCommand.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmFileCommand.h b/Source/cmFileCommand.h
index f3ca020..fe27bf6 100644
--- a/Source/cmFileCommand.h
+++ b/Source/cmFileCommand.h
@@ -73,6 +73,7 @@ public:
" FILE(REMOVE_RECURSE [directory]...)\n"
" FILE(MAKE_DIRECTORY [directory]...)\n"
" FILE(RELATIVE_PATH variable directory file)\n"
+ " FILE(SYSTEM_PATH ENVIRONMENT_VARIABLE result)\n"
"WRITE will write a message into a file called 'filename'. It "
"overwrites the file if it already exists, and creates the file "
"if it does not exist.\n"
@@ -98,7 +99,9 @@ public:
" /dir/*.py - match all python files in /dir and subdirectories\n"
"MAKE_DIRECTORY will create a directory at the specified location\n"
"RELATIVE_PATH will determine relative path from directory to the given"
- " file";
+ " file."
+ " SYSTEM_PATH will look up the environment variable named and "
+ "convert its contents into a cmake list of unix style paths. ";
}
cmTypeMacro(cmFileCommand, cmCommand);
@@ -111,6 +114,7 @@ protected:
bool HandleMakeDirectoryCommand(std::vector<std::string> const& args);
bool HandleInstallCommand(std::vector<std::string> const& args);
bool HandleRelativePathCommand(std::vector<std::string> const& args);
+ bool HandleSystemPathCommand(std::vector<std::string> const& args);
};