summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-03-17 19:11:33 (GMT)
committerBrad King <brad.king@kitware.com>2009-03-17 19:11:33 (GMT)
commitb59d0a4d1307caf4a2b424cc081e69cc59c177c6 (patch)
tree0500042c313f6e7f2cdcde4c539e266f1ee711f5 /Source/cmLocalGenerator.cxx
parentecb0f3af55f8fde908edcec7f5ccf2cef4002050 (diff)
downloadCMake-b59d0a4d1307caf4a2b424cc081e69cc59c177c6.zip
CMake-b59d0a4d1307caf4a2b424cc081e69cc59c177c6.tar.gz
CMake-b59d0a4d1307caf4a2b424cc081e69cc59c177c6.tar.bz2
BUG: Allow more shell ops in custom commands
This extends the set of common shell operators to include "||", "&&", "1>", and "2>". See issue #6868.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 835c886..c1c80a0 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2713,7 +2713,11 @@ static bool cmLocalGeneratorIsShellOperator(const char* str)
strcmp(str, "<<") == 0 ||
strcmp(str, ">>") == 0 ||
strcmp(str, "|") == 0 ||
+ strcmp(str, "||") == 0 ||
+ strcmp(str, "&&") == 0 ||
strcmp(str, "&>") == 0 ||
+ strcmp(str, "1>") == 0 ||
+ strcmp(str, "2>") == 0 ||
strcmp(str, "2>&1") == 0 ||
strcmp(str, "1>&2") == 0)
{