summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmDSPMakefile.cxx6
-rw-r--r--Source/cmDSPWriter.cxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmDSPMakefile.cxx b/Source/cmDSPMakefile.cxx
index c54d1a3..9d33640 100644
--- a/Source/cmDSPMakefile.cxx
+++ b/Source/cmDSPMakefile.cxx
@@ -442,7 +442,7 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName,
if (j->second == cmTarget::GENERAL)
{
libOptions += " ";
- libOptions += j->first;
+ libOptions += cmSystemTools::EscapeSpaces(j->first.c_str());
if(j->first.find(".lib") == std::string::npos)
{
libOptions += ".lib ";
@@ -451,7 +451,7 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName,
if (j->second == cmTarget::DEBUG)
{
libDebugOptions += " ";
- libDebugOptions += j->first;
+ libDebugOptions += cmSystemTools::EscapeSpaces(j->first.c_str());
if(j->first.find(".lib") == std::string::npos)
{
libDebugOptions += ".lib ";
@@ -460,7 +460,7 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName,
if (j->second == cmTarget::OPTIMIZED)
{
libOptimizedOptions += " ";
- libOptimizedOptions += j->first;
+ libOptimizedOptions += cmSystemTools::EscapeSpaces(j->first.c_str());
if(j->first.find(".lib") == std::string::npos)
{
libOptimizedOptions += ".lib ";
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx
index c54d1a3..9d33640 100644
--- a/Source/cmDSPWriter.cxx
+++ b/Source/cmDSPWriter.cxx
@@ -442,7 +442,7 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName,
if (j->second == cmTarget::GENERAL)
{
libOptions += " ";
- libOptions += j->first;
+ libOptions += cmSystemTools::EscapeSpaces(j->first.c_str());
if(j->first.find(".lib") == std::string::npos)
{
libOptions += ".lib ";
@@ -451,7 +451,7 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName,
if (j->second == cmTarget::DEBUG)
{
libDebugOptions += " ";
- libDebugOptions += j->first;
+ libDebugOptions += cmSystemTools::EscapeSpaces(j->first.c_str());
if(j->first.find(".lib") == std::string::npos)
{
libDebugOptions += ".lib ";
@@ -460,7 +460,7 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName,
if (j->second == cmTarget::OPTIMIZED)
{
libOptimizedOptions += " ";
- libOptimizedOptions += j->first;
+ libOptimizedOptions += cmSystemTools::EscapeSpaces(j->first.c_str());
if(j->first.find(".lib") == std::string::npos)
{
libOptimizedOptions += ".lib ";