MantisBT - CMake
View Issue Details
0010356CMakeCMakepublic2010-03-02 16:382012-02-15 13:32
Pat Marion 
Ben Boeckel 
normalminoralways
closedfixed 
CMake-2-8 
CMake 2.8.4CMake 2.8.4 
0010356: Problem specifying arguments on the command line containing '='
If I configure with -DCMAKE_CXX_FLAGS:STRING="qarch=440" then everything is OK, but if I don't specify STRING and configure with -DCMAKE_CXX_FLAGS="qarch=440" then I get this in the CMakeCache.txt:

CMAKE_CXX_FLAGS:STRING=
CMAKE_CXX_FLAGS=-qarch:UNINITIALIZED=440

If there is no '=' in the cxx flags then there are no problems.
Brad's initial comments:

"I think it's a problem with the regular expression CMake uses to
separate on the '=' sign. It must be greedily taking everything
until the last '='."
No tags attached.
has duplicate 0011495closed Ben Boeckel CMAKE_INSTALL_PREFIX cannot contain the '=' character in the path 
has duplicate 0009214closed David Cole -D option can't use value with equals sign 
Issue History
2010-03-02 16:38Pat MarionNew Issue
2010-12-08 08:15David ColeAssigned To => Ben Boeckel
2010-12-08 08:15David ColeStatusnew => assigned
2010-12-08 08:16David ColeNote Added: 0023791
2010-12-08 08:16David ColeTarget Version => CMake 2.8.4
2010-12-08 09:24David ColeRelationship addedhas duplicate 0011495
2010-12-08 17:48Ben BoeckelNote Added: 0023830
2010-12-14 15:50David ColeRelationship addedhas duplicate 0009214
2011-01-06 14:34Ben BoeckelNote Added: 0024472
2011-01-06 14:34Ben BoeckelStatusassigned => resolved
2011-01-06 14:34Ben BoeckelResolutionopen => fixed
2011-01-06 14:34Ben BoeckelFixed in Version => CMake 2.8.4
2011-05-02 14:45David ColeNote Added: 0026317
2011-05-02 14:45David ColeStatusresolved => closed

Notes
(0023791)
David Cole   
2010-12-08 08:16   
You fixed this problem recently, right, Ben?
(0023830)
Ben Boeckel   
2010-12-08 17:48   
Yep. It's actually in next right now. As of 22 Nov 2010. Commit 9bfecdb01af5ad8338f1a5dc0031dfccb53b614d.
(0024472)
Ben Boeckel   
2011-01-06 14:34   
Merged into master.

http://cmake.org/gitweb?p=cmake.git;a=commit;h=5b00b2a2018cfd3fdb52185e8c4852dc0c50fc89 [^]
(0026317)
David Cole   
2011-05-02 14:45   
Closing resolved issues that have not been updated in more than 3 months.