diff options
author | Amitha Perera <perera@cs.rpi.edu> | 2002-01-06 14:59:16 -0500 |
---|---|---|
committer | Amitha Perera <perera@cs.rpi.edu> | 2002-01-06 14:59:16 -0500 |
commit | 2fa6a0eb44a8032982c2ff09b56c3c7bc170ff3c (patch) | |
tree | ae63123167de44380ff91acc6b5f13f83d870dfc /Source/cmSystemTools.h | |
parent | 0e7e1c110c5cb6c0c79804e6d2654331b19db3d0 (diff) | |
download | cmake-2fa6a0eb44a8032982c2ff09b56c3c7bc170ff3c.tar.gz |
ENH: Add an invocation that maintains symbolic paths to the source and binary trees, mainly for systems with automounted network drives.
ENH: CollapseFullPath() no longer adds a trailing "/" to directory paths.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 8b4dc2f786..79426926e1 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -254,6 +254,16 @@ public: std::string& file); static std::string CollapseFullPath(const char*); + /** + * all file path prefixes matching \arg from will be replaced by + * \arg to. Affects the return value of CollapseFullPath and + * GetCurrentWorkingDirectory. + */ + static void AddPathTranslation( const std::string& from, const std::string& to ); + + ///! Apply the current path translations to \arg path. + static void ApplyPathTranslation( std::string& path ); + ///! return path of a full filename (no trailing slashes). static std::string GetFilenamePath(const std::string&); @@ -295,6 +305,9 @@ private: static bool s_DisableMessages; static bool s_DisableRunCommandOutput; static ErrorCallback s_ErrorCallback; + + typedef std::map<cmStdString, cmStdString> PathMap; + static PathMap s_PathMap; }; |