summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-09-21 19:35:41 (GMT)
committerBrad King <brad.king@kitware.com>2006-09-21 19:35:41 (GMT)
commit6d72bb5ae1a6abe3f497133ea8483e0a6cd0dd5e (patch)
tree6620f9583fddcd4e7cf4e0bc3ca8765836f26374 /Source
parent45a44a70b35ae2b173f0e0c987692ebd520dd885 (diff)
downloadCMake-6d72bb5ae1a6abe3f497133ea8483e0a6cd0dd5e.zip
CMake-6d72bb5ae1a6abe3f497133ea8483e0a6cd0dd5e.tar.gz
CMake-6d72bb5ae1a6abe3f497133ea8483e0a6cd0dd5e.tar.bz2
BUG: Need to escape spaces in custom command line arguments.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 93dd422..66a78e1 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 += "\\";
}