mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user