ENH: dont do relative paths when nothing is relative
This commit is contained in:
parent
9878c9ea34
commit
1690c45626
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue