summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-19 16:38:32 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-19 16:38:32 (GMT)
commitcafd48a7f2b7cbb041b863e9efc75b7fc24bafbf (patch)
tree8683dfc5cf34fae75d79e19b668b6f5e834e74e0 /Source
parentf38a28f044aca872eeabe80dac50ada76a2c1ec3 (diff)
downloadCMake-cafd48a7f2b7cbb041b863e9efc75b7fc24bafbf.zip
CMake-cafd48a7f2b7cbb041b863e9efc75b7fc24bafbf.tar.gz
CMake-cafd48a7f2b7cbb041b863e9efc75b7fc24bafbf.tar.bz2
EHN: Even more cleanup
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCTest.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 00860f6..1de422e 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -2164,7 +2164,13 @@ std::string cmCTest::GetShortPathToFile(const char* fname)
return fname;
}
cmSystemTools::ConvertToUnixSlashes(*res);
- return "./" + *res;
+
+ std::string path = "./" + *res;
+ if ( path[path.size()-1] == '/' )
+ {
+ path = path.substr(0, path.size()-1);
+ }
+ return path;
}
std::string cmCTest::GetDartConfiguration(const char *name)