summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-03-14 17:36:24 (GMT)
committerBrad King <brad.king@kitware.com>2007-03-14 17:36:24 (GMT)
commita724f0d425f42a1352f5a7a6a6403f27c8acd145 (patch)
treed35a8a29470e0696d4df512f85a9a0a96742cc25 /Source/cmLocalGenerator.cxx
parent770ffb1699948071bac6f60444b3cb1eb28f3ba6 (diff)
downloadCMake-a724f0d425f42a1352f5a7a6a6403f27c8acd145.zip
CMake-a724f0d425f42a1352f5a7a6a6403f27c8acd145.tar.gz
CMake-a724f0d425f42a1352f5a7a6a6403f27c8acd145.tar.bz2
BUG: During relative path conversion if the remote and target paths are the same return the empty string instead of ".".
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index e20bfe1..ba6fe02 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2222,11 +2222,11 @@ cmLocalGenerator
return in_remote;
}
- // If the entire path is in common then just return a ".".
+ // If the entire path is in common then just return an empty string.
if(common == remote.size() &&
common == local.size())
{
- return ".";
+ return "";
}
// If the entire path is in common except for a trailing slash then