[cmake-commits] hoffman committed SystemTools.cxx 1.157.2.15
1.157.2.16
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Oct 26 22:57:02 EDT 2007
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv15420/Source/kwsys
Modified Files:
Tag: CMake-2-4
SystemTools.cxx
Log Message:
ENH: move changes from head
Index: SystemTools.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SystemTools.cxx,v
retrieving revision 1.157.2.15
retrieving revision 1.157.2.16
diff -u -d -r1.157.2.15 -r1.157.2.16
--- SystemTools.cxx 6 Jun 2007 14:41:10 -0000 1.157.2.15
+++ SystemTools.cxx 27 Oct 2007 02:57:00 -0000 1.157.2.16
@@ -2704,22 +2704,15 @@
sameCount++;
}
-#if 0
- // NOTE: We did this at one time to prevent relative paths to the
- // compiler from looking like "../../../../../../../usr/bin/gcc".
- // Now however relative paths are only computed for destinations
- // inside the build tree so this is not a problem. This is now a
- // general-purpose method and should not have this hack. I'm
- // leaving it in place in case removing it causes a problem so it is
- // easy to restore:
- //
- // If there is nothing in common but the root directory, then just
- // return the full path.
- if(sameCount <= 1)
+ // If there is nothing in common at all then just return the full
+ // path. This is the case only on windows when the paths have
+ // different drive letters. On unix two full paths always at least
+ // have the root "/" in common so we will return a relative path
+ // that passes through the root directory.
+ if(sameCount == 0)
{
return remote;
}
-#endif
// for each entry that is not common in the local path
// add a ../ to the finalpath array, this gets us out of the local
More information about the Cmake-commits
mailing list