MantisBT - CMake
View Issue Details
0012565CMakeCMakepublic2011-11-09 06:082012-04-02 10:10
Thomas McGuire 
Clinton Stimpson 
normalmajoralways
closedfixed 
Linux
CMake 2.8.5 
CMake 2.8.7CMake 2.8.7 
0012565: CBP Generator produces malformed XML - QtCreator integration broken
The CBP generator produces incorrect XML in some cases, I'll attach a very small testcase now.
QtCreator uses the CBP generator for its CMake integration, this bug means that CMake integration in QtCreator is completely broken, since the QtCreator XML parses aborts on any malformed XML.

The issues is with quoting, the generator does not handle nested quoting, a " should be transformed to " in the XML in this case.

This is with cmake version 2.8.5.20110910-ge27a0.
1. Run "cmake -G"CodeBlocks - Unix Makefiles"" on the attached CMakeLists.txt
2. Have a look at the generated Project.cdp, it contains:
        <Add option="-DPROGRAM_NAME="HelloWorld"" />
   This should be:
        <Add option="-DPROGRAM_NAME="HelloWorld"" />
No tags attached.
has duplicate 0012594closed David Cole Codeblocks generator ignores CMP0005 
txt CMakeLists.txt (154) 2011-11-09 06:08
https://public.kitware.com/Bug/file/4112/CMakeLists.txt
Issue History
2011-11-09 06:08Thomas McGuireNew Issue
2011-11-09 06:08Thomas McGuireFile Added: CMakeLists.txt
2011-11-09 06:11David ColeAssigned To => Clinton Stimpson
2011-11-09 06:11David ColeStatusnew => assigned
2011-11-09 06:12David ColeNote Added: 0027737
2011-11-09 06:12David ColeStatusassigned => resolved
2011-11-09 06:12David ColeFixed in Version => CMake 2.8.7
2011-11-09 06:12David ColeResolutionopen => fixed
2011-11-09 06:12David ColeTarget Version => CMake 2.8.7
2011-11-09 06:12David ColeDescription Updatedbug_revision_view_page.php?rev_id=443#r443
2011-11-09 06:12David ColeSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=445#r445
2011-11-28 13:09David ColeRelationship addedhas duplicate 0012594
2012-04-02 10:10David ColeNote Added: 0029040
2012-04-02 10:10David ColeStatusresolved => closed

Notes
(0027737)
David Cole   
2011-11-09 06:12   
This issue has been fixed already in CMake 'next' and 'master' -- the fix will be in the 2.8.7 release.

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=240d39a6a4f72fe0e45fc1a1403e0b578d36a142 [^]
(0029040)
David Cole   
2012-04-02 10:10   
Closing resolved issues that have not been updated in more than 4 months.