View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0009214 | CMake | CMake | public | 2009-06-28 01:18 | 2010-12-14 15:54 | ||||
Reporter | Greg Sharp | ||||||||
Assigned To | David Cole | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | duplicate | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake-2-6 | ||||||||
Target Version | Fixed in Version | CMake 2.8.4 | |||||||
Summary | 0009214: -D option can't use value with equals sign | ||||||||
Description | I can't seem to use the -D option to create a value with an equal sign. This is with cmake 2.6.4 on linux. For example: $ cat myscript.cmake MESSAGE("FOO is ${FOO}") $ cmake -DFOO=bar -P myscript.cmake FOO is bar $ cmake -DFOO=bar=baz -P myscript.cmake FOO is $ cmake -DFOO="bar=baz" -P myscript.cmake FOO is $ cmake -DFOO=bar\=baz -P myscript.cmake FOO is $ cmake -DFOO="bar\=baz" -P myscript.cmake FOO is | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | ![]() | ||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0018058) Tim White (reporter) 2009-10-12 11:08 edited on: 2009-10-12 11:09 |
This is a bug in a regex in ParseEntry() in cmCacheManager.cxx. I've uploaded a (1-character!) patch to fix it. :) There are 2 ParseEntry() routines, and only the version that does not extract a variable type has this bug. So, a workaround is: $ cmake -DFOO:STRING=bar=baz BTW I would have ticked "major" for severity -- compilers like xlc expect options of the form "-option=value" and it took me a while to figure out what was going wrong. Also, it wouldn't hurt to reduce code duplication between the two ParseEntry() variants, but that would mean looking at all call sites and I don't have that much energy... :) |
(0023970) David Cole (manager) 2010-12-14 15:51 |
This should be fixed when the duplicate bug is fixed... |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2009-06-28 01:18 | Greg Sharp | New Issue | |
2009-10-12 10:58 | Tim White | File Added: cmCacheManager.cxx.patch | |
2009-10-12 11:08 | Tim White | Note Added: 0018058 | |
2009-10-12 11:09 | Tim White | Note Edited: 0018058 | |
2010-12-14 15:50 | David Cole | Relationship added | duplicate of 0010356 |
2010-12-14 15:51 | David Cole | Assigned To | => David Cole |
2010-12-14 15:51 | David Cole | Status | new => assigned |
2010-12-14 15:51 | David Cole | Note Added: 0023970 | |
2010-12-14 15:51 | David Cole | Status | assigned => closed |
2010-12-14 15:52 | David Cole | Resolution | open => duplicate |
2010-12-14 15:52 | David Cole | Fixed in Version | => CMake 2.8.4 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |