BUG: fix CollapseFullPath so a trailing slash is not added to directories
This commit is contained in:
parent
a7065630f2
commit
8e15a1ede7
|
@ -1250,6 +1250,10 @@ std::string cmSystemTools::CollapseFullPath(const char* in_name)
|
||||||
{
|
{
|
||||||
dir = cmSystemTools::GetCurrentWorkingDirectory();
|
dir = cmSystemTools::GetCurrentWorkingDirectory();
|
||||||
}
|
}
|
||||||
|
if(file == "")
|
||||||
|
{
|
||||||
|
return dir;
|
||||||
|
}
|
||||||
return dir + "/" + file;
|
return dir + "/" + file;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue