diff options
author | Brad King <brad.king@kitware.com> | 2003-11-04 13:50:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-11-04 13:50:43 (GMT) |
commit | 0169ccf15719d81a4799fdd8b51fee6a318f7d80 (patch) | |
tree | 95d0f4d26f3475ca90606b226c238f14ce1141a5 | |
parent | def3fd04366472e80b0546122af82d9b80af9c0a (diff) | |
download | CMake-0169ccf15719d81a4799fdd8b51fee6a318f7d80.zip CMake-0169ccf15719d81a4799fdd8b51fee6a318f7d80.tar.gz CMake-0169ccf15719d81a4799fdd8b51fee6a318f7d80.tar.bz2 |
BUG: Cannot add extra escapes for backslashes because it makes the behavior inconsistent with previous versions of cmake.
-rw-r--r-- | Source/cmAddTestCommand.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmAddTestCommand.cxx b/Source/cmAddTestCommand.cxx index 4a2cb20..ec04928 100644 --- a/Source/cmAddTestCommand.cxx +++ b/Source/cmAddTestCommand.cxx @@ -72,8 +72,10 @@ void cmAddTestCommand::FinalPass() fout << " \""; for(std::string::iterator c = it->begin(); c != it->end(); ++c) { - // Escape quotes and backslashes within arguments. - if((*c == '"') || (*c == '\\')) + // Escape quotes within arguments. We should escape + // backslashes too but we cannot because it makes the result + // inconsistent with previous behavior of this command. + if((*c == '"')) { fout << '\\'; } |