summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBruno Manganelli <bruno.manga95@gmail.com>2018-11-23 01:38:29 (GMT)
committerBruno Manganelli <bruno.manga95@gmail.com>2018-12-07 19:29:30 (GMT)
commit87e810f223bad6fb889e7ae4ad08be98461bf6e2 (patch)
tree07ad1b190e0bfe2240a2e534195973e44426d913 /Source/cmSystemTools.h
parent99a224e3ee0b6a770c388313a7b32746a95514e8 (diff)
downloadCMake-87e810f223bad6fb889e7ae4ad08be98461bf6e2.zip
CMake-87e810f223bad6fb889e7ae4ad08be98461bf6e2.tar.gz
CMake-87e810f223bad6fb889e7ae4ad08be98461bf6e2.tar.bz2
cmOutputConverter: Moved ForceToRelativePath to cmSystem
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 832c1ca..c0999e7 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -375,6 +375,14 @@ public:
static std::string RelativePath(std::string const& local,
std::string const& remote);
+ /**
+ * Convert the given remote path to a relative path with respect to
+ * the given local path. Both paths must use forward slashes and not
+ * already be escaped or quoted.
+ */
+ static std::string ForceToRelativePath(std::string const& local_path,
+ std::string const& remote_path);
+
/** Joins two paths while collapsing x/../ parts
* For example CollapseCombinedPath("a/b/c", "../../d") results in "a/d"
*/