Commit 31561a78 authored by Berk Geveci's avatar Berk Geveci
Browse files

BUG: fix for network paths

parent 8a4a39d5
......@@ -504,10 +504,13 @@ const char *cmSystemTools::ConvertToWindowsSlashesAndCleanUp(std::string& path)
{
cmSystemTools::ConvertToWindowsSlashes(path);
std::string::size_type pos = 0;
pos = 0;
while((pos = path.find("\\\\", pos)) != std::string::npos)
if(path.size() > 1)
{
path.erase(pos, 1);
pos = 1;
while((pos = path.find("\\\\", pos)) != std::string::npos)
{
path.erase(pos, 1);
}
}
return path.c_str();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment