ENH: do not collapse full path for cwd

This commit is contained in:
Bill Hoffman 2005-04-12 13:26:35 -04:00
parent a3d1de8cd2
commit 9e4506a2d0
1 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,9 @@ void cmDepends::Check()
std::string oldcwd = "."; std::string oldcwd = ".";
if(m_Directory != ".") 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()); cmSystemTools::ChangeDirectory(m_Directory.c_str());
} }