[Cmake-commits] [cmake-commits] king committed cmGetFilenameComponentCommand.cxx 1.23 1.24
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Nov 18 10:56:42 EST 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv32276/Source
Modified Files:
cmGetFilenameComponentCommand.cxx
Log Message:
Fix get_filename_component(... REALPATH) work dir
The commit "Fix get_filename_component ABSOLUTE mode" broke REALPATH
treatment of relative paths because it stopped storing the absolute path
in local variable 'filename'. This commit fixes the call to GetRealPath
to use the proper local variable and adds a test.
Index: cmGetFilenameComponentCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGetFilenameComponentCommand.cxx,v
retrieving revision 1.23
retrieving revision 1.24
diff -C 2 -d -r1.23 -r1.24
*** cmGetFilenameComponentCommand.cxx 30 Sep 2009 17:45:24 -0000 1.23
--- cmGetFilenameComponentCommand.cxx 18 Nov 2009 15:56:38 -0000 1.24
***************
*** 102,106 ****
{
// Resolve symlinks if possible
! result = cmSystemTools::GetRealPath(filename.c_str());
}
}
--- 102,106 ----
{
// Resolve symlinks if possible
! result = cmSystemTools::GetRealPath(result.c_str());
}
}
More information about the Cmake-commits
mailing list