diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-06-23 20:34:38 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-06-23 20:34:38 (GMT) |
commit | 2705b1bf736e5f98b0862e831fe9ab2799d1d0ee (patch) | |
tree | 4e3cc1d74fbae4c2f34df019f812f00a11b21b2a /Source/cmSystemTools.h | |
parent | dc4a6f63b0452968dc564be46909ed228bbc141c (diff) | |
download | CMake-2705b1bf736e5f98b0862e831fe9ab2799d1d0ee.zip CMake-2705b1bf736e5f98b0862e831fe9ab2799d1d0ee.tar.gz CMake-2705b1bf736e5f98b0862e831fe9ab2799d1d0ee.tar.bz2 |
BUG: fix spaces in path on mingw, and change EXEC_PROGRAM to return false when it does not run, also do not convert the directory to an output path for EXEC_PROGRAM as this is done by the process execution, and doing it twice may cause trouble on some shells.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 2862406..f779ecc 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -252,7 +252,12 @@ public: { s_ForceUnixPaths = v; } + // ConvertToOutputPath use s_ForceUnixPaths static std::string ConvertToOutputPath(const char* path); + // ConvertToRunCommandPath does not use s_ForceUnixPaths and should + // 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); //! Check if the first string ends with the second one. static bool StringEndsWith(const char* str1, const char* str2); |