diff options
author | Brad King <brad.king@kitware.com> | 2009-03-17 19:11:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-03-17 19:11:33 (GMT) |
commit | b59d0a4d1307caf4a2b424cc081e69cc59c177c6 (patch) | |
tree | 0500042c313f6e7f2cdcde4c539e266f1ee711f5 /Source/cmLocalGenerator.cxx | |
parent | ecb0f3af55f8fde908edcec7f5ccf2cef4002050 (diff) | |
download | CMake-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.cxx | 4 |
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) { |