summaryrefslogtreecommitdiffstats
path: root/Source/cmDepends.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-04-12 17:26:35 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-04-12 17:26:35 (GMT)
commit9e4506a2d0586dacba53119bc7c651a1d16c1849 (patch)
tree080cbd319c835cbf4ba511652d657b1086c5e846 /Source/cmDepends.cxx
parenta3d1de8cd2a3d8ae50d308778ff7185aa9061292 (diff)
downloadCMake-9e4506a2d0586dacba53119bc7c651a1d16c1849.zip
CMake-9e4506a2d0586dacba53119bc7c651a1d16c1849.tar.gz
CMake-9e4506a2d0586dacba53119bc7c651a1d16c1849.tar.bz2
ENH: do not collapse full path for cwd
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r--Source/cmDepends.cxx4
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());
}