summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-06-23 20:34:38 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-06-23 20:34:38 (GMT)
commit2705b1bf736e5f98b0862e831fe9ab2799d1d0ee (patch)
tree4e3cc1d74fbae4c2f34df019f812f00a11b21b2a /Source/cmSystemTools.h
parentdc4a6f63b0452968dc564be46909ed228bbc141c (diff)
downloadCMake-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.h5
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);