BUG: fix remove of cygdrive path stuff

This commit is contained in:
Bill Hoffman 2002-02-25 10:47:56 -05:00
parent a6333bfca3
commit cd9157d9ea
1 changed files with 2 additions and 2 deletions

View File

@ -431,8 +431,8 @@ std::string cmSystemTools::ConvertToUnixOutputPath(const char* path)
{
std::string ret = path;
// remove //
std::string::size_type pos = 0;
// remove // except at the beginning might be a cygwin drive
std::string::size_type pos = 1;
while((pos = ret.find("//", pos)) != std::string::npos)
{
ret.erase(pos, 1);