summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-03 11:25:25 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-07-03 11:25:31 (GMT)
commitb902da418dcebe5eb34019fb15be96ab8f13f5a2 (patch)
tree8c1d0a7926d41cb13a2954f1edd981e9151a64fd /Source/cmSystemTools.cxx
parent55a9298ac6cc8c9d6bb5561d65c0e3b873abc8a5 (diff)
parent85a945a607d5c417e780afed98868366fcfd8fae (diff)
downloadCMake-b902da418dcebe5eb34019fb15be96ab8f13f5a2.zip
CMake-b902da418dcebe5eb34019fb15be96ab8f13f5a2.tar.gz
CMake-b902da418dcebe5eb34019fb15be96ab8f13f5a2.tar.bz2
Merge topic 'restore-cwd-translation-map' into release-3.18
85a945a607 Restore handling of build directory inside a symlinked path Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4963
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 2f08b84..1e78d36 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -2082,6 +2082,12 @@ std::string const& cmSystemTools::GetCMakeRoot()
return cmSystemToolsCMakeRoot;
}
+std::string cmSystemTools::GetCurrentWorkingDirectory()
+{
+ return cmSystemTools::CollapseFullPath(
+ cmsys::SystemTools::GetCurrentWorkingDirectory());
+}
+
void cmSystemTools::MakefileColorEcho(int color, const char* message,
bool newline, bool enabled)
{