summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-12-22 17:24:26 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-12-22 17:24:26 (GMT)
commiteb9fc21543a48d3b842da09d5653d8ca1c58b196 (patch)
tree4770efad715ad9ef4ed76428e86eeccc5da4c6a9 /Source/cmSystemTools.h
parentdad738eab1872837dc70a68732213150755a2d8c (diff)
downloadCMake-eb9fc21543a48d3b842da09d5653d8ca1c58b196.zip
CMake-eb9fc21543a48d3b842da09d5653d8ca1c58b196.tar.gz
CMake-eb9fc21543a48d3b842da09d5653d8ca1c58b196.tar.bz2
ENH: add support for relative paths in makefiles
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 5d484a8..4aeaf18 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -245,6 +245,11 @@ public:
static bool StringEndsWith(const char* str1, const char* str2);
static bool CreateSymlink(const char* origName, const char* newName);
+
+ ///! compute the relative path from local to remote
+ static std::string RelativePath(const char* local, const char* remote);
+ ///! split a path by separator into an array of strings, default is /
+ static std::vector<std::string> SplitString(const char* s, char separator = '/');
private:
static bool s_ForceUnixPaths;
static bool s_RunCommandHideConsole;