From 6d72bb5ae1a6abe3f497133ea8483e0a6cd0dd5e Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 21 Sep 2006 15:35:41 -0400 Subject: [PATCH] BUG: Need to escape spaces in custom command line arguments. --- Source/cmLocalGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 93dd422dbf..66a78e1c71 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2257,7 +2257,7 @@ std::string cmLocalGenerator::EscapeForShell(const char* str) { for(const char* c = str; *c; ++c) { - if(*c == '\\' || *c == '\'' || *c == '"' || *c == ';') + if(*c == '\\' || *c == '\'' || *c == '"' || *c == ';' || *c == ' ') { result += "\\"; }