diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 01d08ec78..93dd422db 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2257,8 +2257,7 @@ std::string cmLocalGenerator::EscapeForShell(const char* str) { for(const char* c = str; *c; ++c) { - if(*c == '\\' || *c == '\'' || *c == '"' || *c == ';' || - *c == '(' || *c == ')') + if(*c == '\\' || *c == '\'' || *c == '"' || *c == ';') { result += "\\"; }