Browse Source

ENH: do not collapse full path for cwd

Bill Hoffman 20 years ago
parent
commit
9e4506a2d0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Source/cmDepends.cxx

+ 3 - 1
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());
     }