diff options
-rw-r--r-- | Source/cmDepends.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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()); } |