fix for network includ paths

This commit is contained in:
Ken Martin 2001-06-01 13:54:43 -04:00
parent 6103324e01
commit abab6bc000
2 changed files with 22 additions and 2 deletions

View File

@ -73,7 +73,17 @@ void cmDSPMakefile::OutputDSPFile()
for(i = includes.begin(); i != includes.end(); ++i)
{
m_IncludeOptions += "/I \"";
m_IncludeOptions += *i;
// watch for network paths, MSVC can't seem to load //
if (strlen(i->c_str()) > 2 && i->c_str()[0] == '/' &&
i->c_str()[1] == '/')
{
m_IncludeOptions += "\\\\";
m_IncludeOptions += (i->c_str() + 2);
}
else
{
m_IncludeOptions += *i;
}
m_IncludeOptions += "\" ";
}

View File

@ -73,7 +73,17 @@ void cmDSPMakefile::OutputDSPFile()
for(i = includes.begin(); i != includes.end(); ++i)
{
m_IncludeOptions += "/I \"";
m_IncludeOptions += *i;
// watch for network paths, MSVC can't seem to load //
if (strlen(i->c_str()) > 2 && i->c_str()[0] == '/' &&
i->c_str()[1] == '/')
{
m_IncludeOptions += "\\\\";
m_IncludeOptions += (i->c_str() + 2);
}
else
{
m_IncludeOptions += *i;
}
m_IncludeOptions += "\" ";
}