diff options
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index a0f672f..749b2e8 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -88,7 +88,13 @@ public: * Replace Windows file system slashes with Unix-style slashes. */ static void ConvertToUnixSlashes(std::string& path); - + + /** + * Replace Unix file system slashes with Windows-style slashes and + * remove any duplicate slashes to clean the path. + */ + static void CleanUpWindowsSlashes(std::string& path); + ///! Return true if a file exists in the current directory. static bool FileExists(const char* filename); |