diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-04-12 17:26:35 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-04-12 17:26:35 (GMT) |
commit | 9e4506a2d0586dacba53119bc7c651a1d16c1849 (patch) | |
tree | 080cbd319c835cbf4ba511652d657b1086c5e846 | |
parent | a3d1de8cd2a3d8ae50d308778ff7185aa9061292 (diff) | |
download | CMake-9e4506a2d0586dacba53119bc7c651a1d16c1849.zip CMake-9e4506a2d0586dacba53119bc7c651a1d16c1849.tar.gz CMake-9e4506a2d0586dacba53119bc7c651a1d16c1849.tar.bz2 |
ENH: do not collapse full path for cwd
-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()); } |