From 33e1a4a09aaedfcb869e2f4217815e09f0d3187f Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 4 May 2001 10:44:59 -0400 Subject: [PATCH] ENH: Added support to EscapeSpaces to use double quotes on windows. --- Source/cmSystemTools.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 0a2ff7921..9883621bf 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -174,6 +174,10 @@ void cmSystemTools::ReplaceString(std::string& source, std::string cmSystemTools::EscapeSpaces(const char* str) { +#if defined(_WIN32) && !defined(__CYGWIN__) + std::string result = str; + return "\""+result+"\""; +#else std::string result = ""; for(const char* ch = str; *ch != '\0'; ++ch) { @@ -184,6 +188,7 @@ std::string cmSystemTools::EscapeSpaces(const char* str) result += *ch; } return result; +#endif }