diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-22 02:24:17 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-22 02:24:17 (GMT) |
commit | 5647e6e254f82a81997cd3913f872b06fe761f1e (patch) | |
tree | 50022ba8365b2c196965087a23a86cb848e36302 /Source/cmSystemTools.h | |
parent | 806001bbb633a27624e9a0f5e564cab3bfefb0c3 (diff) | |
download | CMake-5647e6e254f82a81997cd3913f872b06fe761f1e.zip CMake-5647e6e254f82a81997cd3913f872b06fe761f1e.tar.gz CMake-5647e6e254f82a81997cd3913f872b06fe761f1e.tar.bz2 |
ENH: fix parens in the path with spaces in the path
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 6165d98..f42ac17 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -293,10 +293,12 @@ public: // be used when RunCommand is called from cmake, because the // running cmake needs paths to be in its format static std::string ConvertToRunCommandPath(const char* path); - + // convert to a shell path + static std::string ConvertToShellPath(const char* path); //! Check if the first string ends with the second one. static bool StringEndsWith(const char* str1, const char* str2); - + // escape for unix shells + static std::string EscapeForUnixShell(std::string& result); static bool CreateSymlink(const char* origName, const char* newName); /** compute the relative path from local to remote. local must |