diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-09-11 18:58:57 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-09-11 18:58:57 (GMT) |
commit | 7e37a0cafb6aad056c022218fc7a243292e6b422 (patch) | |
tree | 47ba0c4b1a316a2414e91309a37685fbe7195338 | |
parent | 8ff79eb8ecc61ce93d1b81bcf6e2e5ea0cd804c2 (diff) | |
download | CMake-7e37a0cafb6aad056c022218fc7a243292e6b422.zip CMake-7e37a0cafb6aad056c022218fc7a243292e6b422.tar.gz CMake-7e37a0cafb6aad056c022218fc7a243292e6b422.tar.bz2 |
include fixes
-rw-r--r-- | Source/cmDSPWriter.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx index 016c75f..2840772 100644 --- a/Source/cmDSPWriter.cxx +++ b/Source/cmDSPWriter.cxx @@ -73,7 +73,19 @@ void cmDSPWriter::OutputDSPFile() for(i = includes.begin(); i != includes.end(); ++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 |