diff options
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index c36529b..a94f223 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1158,6 +1158,10 @@ std::string cmSystemTools::RelativePath(const char* local, const char* remote) { sameCount++; } + if(sameCount == 0) + { + return std::string(remote); + } // put in sameCount number of ../ into the path unsigned int i; for(i = sameCount; i < fileSplit.size(); ++i) |