BUG: fix CollapseFullPath so a trailing slash is not added to directories

This commit is contained in:
Bill Hoffman 2002-02-08 15:52:36 -05:00
parent a7065630f2
commit 8e15a1ede7
1 changed files with 4 additions and 0 deletions

View File

@ -1250,6 +1250,10 @@ std::string cmSystemTools::CollapseFullPath(const char* in_name)
{
dir = cmSystemTools::GetCurrentWorkingDirectory();
}
if(file == "")
{
return dir;
}
return dir + "/" + file;
#endif
}