include fixes

This commit is contained in:
Ken Martin 2001-09-11 14:58:57 -04:00
parent 8ff79eb8ec
commit 7e37a0cafb
1 changed files with 13 additions and 1 deletions

View File

@ -73,7 +73,19 @@ void cmDSPWriter::OutputDSPFile()
for(i = includes.begin(); i != includes.end(); ++i) for(i = includes.begin(); i != includes.end(); ++i)
{ {
m_IncludeOptions += " /I "; m_IncludeOptions += " /I ";
m_IncludeOptions += cmSystemTools::ConvertToWindowsSlashesAndCleanUp(cmSystemTools::EscapeSpaces(i->c_str())); std::string tmp = cmSystemTools::ConvertToWindowsSlashesAndCleanUp(cmSystemTools::EscapeSpaces(i->c_str()));
// quote if not already quoted
if (tmp[0] != '"')
{
m_IncludeOptions += "\"";
m_IncludeOptions += tmp;
m_IncludeOptions += "\"";
}
else
{
m_IncludeOptions += tmp;
}
} }
// Create the DSP or set of DSP's for libraries and executables // Create the DSP or set of DSP's for libraries and executables