ENH: do not collapse full path for cwd
This commit is contained in:
parent
a3d1de8cd2
commit
9e4506a2d0
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue