From 9e4506a2d0586dacba53119bc7c651a1d16c1849 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 12 Apr 2005 13:26:35 -0400 Subject: ENH: do not collapse full path for cwd --- Source/cmDepends.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx index 8601f81..0972341 100644 --- a/Source/cmDepends.cxx +++ b/Source/cmDepends.cxx @@ -73,7 +73,9 @@ void cmDepends::Check() std::string oldcwd = "."; if(m_Directory != ".") { - oldcwd = cmSystemTools::GetCurrentWorkingDirectory(); + // Get the CWD but do not call CollapseFullPath because + // we only need it to cd back, and the form does not matter + oldcwd = cmSystemTools::GetCurrentWorkingDirectory(false); cmSystemTools::ChangeDirectory(m_Directory.c_str()); } -- cgit v0.12