diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-06-01 17:54:43 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-06-01 17:54:43 (GMT) |
commit | abab6bc00069df6ff1988abced39b98ea199febc (patch) | |
tree | d76df32943567c9d9af6448b6433a1446c86671b /Source/cmDSPWriter.cxx | |
parent | 6103324e011b56cdb5e44f1ea6840a3d9b2c449c (diff) | |
download | CMake-abab6bc00069df6ff1988abced39b98ea199febc.zip CMake-abab6bc00069df6ff1988abced39b98ea199febc.tar.gz CMake-abab6bc00069df6ff1988abced39b98ea199febc.tar.bz2 |
fix for network includ paths
Diffstat (limited to 'Source/cmDSPWriter.cxx')
-rw-r--r-- | Source/cmDSPWriter.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
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 += "\" "; } |