MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0005389 | CMake | CMake | public | 2007-07-23 16:13 | 2007-12-14 09:23 |
| Reporter | Brandon Van Every | ||||
| Assigned To | Bill Hoffman | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | won't fix | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0005389: MACRO consumes double escapes in string arguments | ||||
| Description | This is really bad for macros wrapping regular expressions, because result expressions of the form "\\\\1\\\\2\\\\3" are used all the time. We don't want to have to pass result expressions with twice as many escapes, like "\\\\\\\\1\\\\\\\\2\\\\\\\\3". It's error prone. MESSAGE("Ordinarily, double escapes in strings work fine.") MESSAGE("\\\\1\\\\2\\\\3") SET(str123 "\\\\1\\\\2\\\\3") MESSAGE("${str123}") MESSAGE("MACRO consumes escapes, causing errors.") MACRO(MUNGE str) MESSAGE("${str}") ENDMACRO(MUNGE) MUNGE("\\\\1\\\\2\\\\3") C:\\devel\\src\\cbugs\\macro>cmake -P macro.cmake Ordinarily, double escapes in strings work fine. \\1\\2\\3 \\1\\2\\3 MACRO consumes escapes, causing errors. CMake Error: Invalid escape sequence \\1 CMake Error: Syntax error in cmake code at C:/devel/src/cbugs/macro/macro.cmake:10: syntax error, unexpected cal_ERROR, expecting $end (2), when parsing string "\\1\\ 2\\3" \\1\\2\\3 | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2007-10-31 12:54 | Josef Karthauser | Note Added: 0009593 | |||
| 2007-10-31 13:55 | Brandon Van Every | Note Added: 0009595 | |||
| 2007-12-14 09:22 | Bill Hoffman | Note Added: 0009876 | |||
| 2007-12-14 09:23 | Bill Hoffman | Note Added: 0009877 | |||
| 2007-12-14 09:23 | Bill Hoffman | Status | assigned => closed | ||
| 2007-12-14 09:23 | Bill Hoffman | Resolution | open => won't fix | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||