From abab6bc00069df6ff1988abced39b98ea199febc Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 1 Jun 2001 13:54:43 -0400 Subject: fix for network includ paths --- Source/cmDSPMakefile.cxx | 12 +++++++++++- Source/cmDSPWriter.cxx | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Source/cmDSPMakefile.cxx b/Source/cmDSPMakefile.cxx index dfee8f1..cbc100f 100644 --- a/Source/cmDSPMakefile.cxx +++ b/Source/cmDSPMakefile.cxx @@ -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 += "\" "; } diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx index dfee8f1..cbc100f 100644 --- a/Source/cmDSPWriter.cxx +++ b/Source/cmDSPWriter.cxx @@ -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 += "\" "; } -- cgit v0.12