diff options
-rw-r--r-- | Source/cmCTest.cxx | 8 |
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) |