MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0014035 | CMake | CMake | public | 2013-03-22 06:06 | 2013-10-07 10:04 |
| Reporter | Ove Sommer | ||||
| Assigned To | |||||
| Priority | high | Severity | major | Reproducibility | always |
| Status | closed | Resolution | duplicate | ||
| Platform | Linux and Windows (independent) | OS | Linux 2.6.37.6-0.11 + Windows 7 | OS Version | |
| Product Version | CMake 2.8.10.2 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0014035: list(LENGTH ...) stops counting on special entries | ||||
| Description | If a list of single-quoted strings contains an entry with an opening angle bracket (ASCII 0x5b '[') the LENGTH sub-command stops counting entries following this bracket entry. Example: list L: 'a';'b';'c[';'d';'e' => list(LENGTH L lenL) => lenL=3 but actually lenL=5 | ||||
| Steps To Reproduce | list(APPEND l 'a';'b';'c[';'d';'e') list(LENGTH l llen) message("len(l) = ${llen}, l = ${l}") | ||||
| Additional Information | The list was created by parsing a file via file(STRINGS "${myFile}" MY_LINES REGEX "^ some_regexp.*$") MY_LINES contains all entries, one of it contains an opening angle bracket followed by a single quote. This bug already occurs in CMake 2.8.2 which we actually use. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/4691/listLenTest.cmake | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2013-03-22 06:06 | Ove Sommer | New Issue | |||
| 2013-03-22 06:06 | Ove Sommer | File Added: listLenTest.cmake | |||
| 2013-03-22 08:04 | Brad King | Note Added: 0032684 | |||
| 2013-03-22 08:04 | Brad King | Status | new => resolved | ||
| 2013-03-22 08:04 | Brad King | Resolution | open => duplicate | ||
| 2013-10-07 10:04 | Robert Maynard | Note Added: 0034013 | |||
| 2013-10-07 10:04 | Robert Maynard | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||