summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorManuel Núñez <ianmalcom@gmail.com>2017-10-02 09:42:07 (GMT)
committerBrad King <brad.king@kitware.com>2017-10-24 15:04:23 (GMT)
commit640709e7db054e90d5e6609eeb16a01af34b5a5a (patch)
tree84b5f1f1c56d3139a00790a4bd9dde2dd6f5ee92 /Source/cmSystemTools.h
parentd41582fc94e823cbfbb214e08e73ad214619a71a (diff)
downloadCMake-640709e7db054e90d5e6609eeb16a01af34b5a5a.zip
CMake-640709e7db054e90d5e6609eeb16a01af34b5a5a.tar.gz
CMake-640709e7db054e90d5e6609eeb16a01af34b5a5a.tar.bz2
cmSystemTools: Implement GetRealPath on Windows
Override the KWSys GetRealPath on Windows and use uv_fs_realpath first to resolve symbolic links. Fixes: #17206
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index e7082e6..2646df9 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -497,6 +497,10 @@ public:
unsigned int Delay;
};
static WindowsFileRetry GetWindowsFileRetry();
+
+ /** Get the real path for a given path, removing all symlinks. */
+ static std::string GetRealPath(const std::string& path,
+ std::string* errorMessage = 0);
#endif
private:
static bool s_ForceUnixPaths;