diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx index 28407721da..8d52ee493d 100644 --- a/Source/cmDSPWriter.cxx +++ b/Source/cmDSPWriter.cxx @@ -73,7 +73,8 @@ void cmDSPWriter::OutputDSPFile() for(i = includes.begin(); i != includes.end(); ++i) { m_IncludeOptions += " /I "; - std::string tmp = cmSystemTools::ConvertToWindowsSlashesAndCleanUp(cmSystemTools::EscapeSpaces(i->c_str())); + std::string tmp = cmSystemTools::EscapeSpaces(i->c_str()); + cmSystemTools::ConvertToWindowsSlashesAndCleanUp(tmp); // quote if not already quoted if (tmp[0] != '"')