mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
fix for network includ paths
This commit is contained in:
@@ -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 += "\" ";
|
||||
}
|
||||
|
||||
|
||||
+11
-1
@@ -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 += "\" ";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user