From 013b9b38495c9c7326ab099b73c777f0f5a28d52 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 9 May 2001 16:08:50 -0400 Subject: ENH: escape spaces --- Source/cmDSPMakefile.cxx | 6 +++--- Source/cmDSPWriter.cxx | 6 +++--- 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 "; -- cgit v0.12