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.
This commit is contained in:
Amitha Perera
2002-01-06 14:59:16 -05:00
parent 0e7e1c110c
commit 2fa6a0eb44
4 changed files with 121 additions and 47 deletions
+13
View File
@@ -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;
};