View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0005149 | CMake | Documentation | public | 2007-06-08 11:41 | 2016-06-10 14:30 | ||||
Reporter | Brandon Van Every | ||||||||
Assigned To | Bill Hoffman | ||||||||
Priority | normal | Severity | text | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0005149: MESSAGE does not document quoting behavior | ||||||||
Description | The entry for MESSAGE in cmake.html does not explain the difference between using quotes and not using them for string output. If newbies fail to use quotes, they get the underlying semicolon separated list output It's worth having the CMake string vs. list storage model explained somewhere in the docs, as it underlies many other CMake operations and problems. It's logical to have it explained in MESSAGE, since that's where newbies typically notice the underlying list storage format. One user wrote: A couple of days ago I noticed something with the ";", too. If you have a list (created either with SET or with LIST), when you try to print it with MESSAGE( mylist ) elements are not separated by ";" but if you print it with MESSAGE( "mylist" ) (with quotes), it will. SET( mylist FOO BAR FIZZBUZZ ) MESSAGE( mylist ) # produces FOOBARFIZZBUZZ MESSAGE( "mylist" ) # produces FOO;BAR;FIZZBUZZ Until now I have only noticed that behavior with MESSAGE, I don't know if that's a bug or if other commands are affected. That's with CMake 2.4.6, I have not tried any other version. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0008396) Bill Hoffman (manager) 2007-08-09 15:34 |
This is not specific to the message command. If you have quotes around a list the ; are treated as part of the string. If not, the ; is a list separator that separates arguments. |
(0041366) Kitware Robot (administrator) 2016-06-10 14:27 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2007-08-09 14:47 | Brandon Van Every | Priority | low => normal |
2007-08-09 14:47 | Brandon Van Every | Severity | minor => text |
2007-08-09 14:47 | Brandon Van Every | Category | => Test Category |
2007-08-09 15:34 | Bill Hoffman | Note Added: 0008396 | |
2007-08-23 16:09 | Alex Neundorf | Category | CMake => Documentation |
2016-06-10 14:27 | Kitware Robot | Note Added: 0041366 | |
2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved |
2016-06-10 14:27 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:30 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |