summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-07 13:04:27 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-07 13:04:27 (GMT)
commit5f525da0e3d4f6c50cc24a93cc792ee025939701 (patch)
tree71710f8f8985d5a0e71f490a331ba3035a1c572e /Source/kwsys/SystemTools.hxx.in
parent61be345115b5f2c402286be7fa3e6df0c2f5f0ac (diff)
parent3d127627f8e28d97ecc44515e274b3780ae3f4b9 (diff)
downloadCMake-5f525da0e3d4f6c50cc24a93cc792ee025939701.zip
CMake-5f525da0e3d4f6c50cc24a93cc792ee025939701.tar.gz
CMake-5f525da0e3d4f6c50cc24a93cc792ee025939701.tar.bz2
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r--Source/kwsys/SystemTools.hxx.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in
index fb55848..b7c7206 100644
--- a/Source/kwsys/SystemTools.hxx.in
+++ b/Source/kwsys/SystemTools.hxx.in
@@ -249,7 +249,18 @@ public:
* Replace Windows file system slashes with Unix-style slashes.
*/
static void ConvertToUnixSlashes(kwsys_stl::string& path);
-
+
+#ifdef _WIN32
+ /**
+ * Convert the path to an extended length path to avoid MAX_PATH length
+ * limitations on Windows. If the input is a local path the result will be
+ * prefixed with \\?\; if the input is instead a network path, the result
+ * will be prefixed with \\?\UNC\. All output will also be converted to
+ * absolute paths with Windows-style backslashes.
+ **/
+ static kwsys_stl::wstring ConvertToWindowsExtendedPath(const kwsys_stl::string&);
+#endif
+
/**
* For windows this calls ConvertToWindowsOutputPath and for unix
* it calls ConvertToUnixOutputPath