MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013089 | CMake | CMake | public | 2012-03-31 15:39 | 2012-09-03 16:00 |
| Reporter | Christoph Anton Mitterer | ||||
| Assigned To | Brad King | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | suspended | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0013089: lists parsing is quite strange and not as documented | ||||
| Description | Hi. http://www.cmake.org/cmake/help/syntax.html [^] tells that lists are set like: set(VAR a;b;c) or set(VAR a b c) However, when using string literals this doesn't work anymore, e.g. 1) List items separated by semicolons set(foo "1 1";"2 2";"3 3") message(${foo}) foreach(ff IN LISTS foo) message("dd: ${ff}") endforeach() => yields in: 1 1"2 2""3 3" dd: 1 1 dd: "2 2" dd: "3 3" 2) List items separated by spaces set(foo "1 1" "2 2" "3 3") message(${foo}) foreach(ff IN LISTS foo) message("dd: ${ff}") endforeach() => yields in: 1 12 23 3 dd: 1 1 dd: 2 2 dd: 3 3 (2) Is obviously what one would expect in both cases. Cheers, Chris. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-03-31 15:39 | Christoph Anton Mitterer | New Issue | |||
| 2012-04-09 09:03 | Brad King | Note Added: 0029098 | |||
| 2012-04-09 09:03 | Brad King | Status | new => resolved | ||
| 2012-04-09 09:03 | Brad King | Resolution | open => suspended | ||
| 2012-04-09 09:03 | Brad King | Assigned To | => Brad King | ||
| 2012-09-03 16:00 | David Cole | Note Added: 0030848 | |||
| 2012-09-03 16:00 | David Cole | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||