diff options
author | Brad King <brad.king@kitware.com> | 2014-07-07 13:04:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-07 13:04:27 (GMT) |
commit | 5f525da0e3d4f6c50cc24a93cc792ee025939701 (patch) | |
tree | 71710f8f8985d5a0e71f490a331ba3035a1c572e /Source/kwsys/SystemTools.hxx.in | |
parent | 61be345115b5f2c402286be7fa3e6df0c2f5f0ac (diff) | |
parent | 3d127627f8e28d97ecc44515e274b3780ae3f4b9 (diff) | |
download | CMake-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.in | 13 |
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 |