summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-04-05 11:46:32 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-04-05 11:46:32 (GMT)
commit24f08322be0193b9e2deb83588fee341deecee48 (patch)
tree6827d804506e6b0fceb3d499c1db8719c2196451 /Source/cmFileCommand.h
parent13bc9efe2e50629f4baf183bceec4bc193098ad8 (diff)
downloadCMake-24f08322be0193b9e2deb83588fee341deecee48.zip
CMake-24f08322be0193b9e2deb83588fee341deecee48.tar.gz
CMake-24f08322be0193b9e2deb83588fee341deecee48.tar.bz2
ENH: add path conversion stuff and rm SYSTEM_PATH
Diffstat (limited to 'Source/cmFileCommand.h')
-rw-r--r--Source/cmFileCommand.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/Source/cmFileCommand.h b/Source/cmFileCommand.h
index 324254f..926a0ad 100644
--- a/Source/cmFileCommand.h
+++ b/Source/cmFileCommand.h
@@ -73,7 +73,8 @@ 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"
+ " FILE(TO_CMAKE_PATH path result)\n"
+ " FILE(TO_NATIVE_PATH path 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"
@@ -101,9 +102,14 @@ 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."
- " SYSTEM_PATH will look up the environment variable named and "
- "convert its contents into a cmake list of unix style paths. ";
+ " file.\n"
+ "TO_CMAKE_PATH will convert path into a cmake sytle path with unix /. "
+ " The input can be a single path or a system path like \"$ENV{PATH}\". "
+ " Note the double quotes around the ENV call TO_CMAKE_PATH only takes "
+ " one argument.\n"
+ "TO_NATIVE_PATH works just like TO_CMAKE_PATH, but will convert from "
+ " a cmake style path into the native path style \\ for windows and / "
+ "for UNIX.";
}
cmTypeMacro(cmFileCommand, cmCommand);
@@ -116,7 +122,8 @@ 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);
+ bool HandleCMakePathCommand(std::vector<std::string> const& args,
+ bool nativePath);
};