[cmake-developers] [CMake 0012565]: CBP Generator produces malformed XML - QtCreator integration broken

Mantis Bug Tracker mantis at public.kitware.com
Wed Nov 9 06:08:02 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=12565 
====================================================================== 
Reported By:                Thomas McGuire
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12565
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-11-09 06:08 EST
Last Modified:              2011-11-09 06:08 EST
====================================================================== 
Summary:                    CBP Generator produces malformed XML - QtCreator
integration broken
Description: 
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.

Steps to Reproduce: 
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"" />
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-11-09 06:08 Thomas McGuire New Issue                                    
2011-11-09 06:08 Thomas McGuire File Added: CMakeLists.txt                    
======================================================================




More information about the cmake-developers mailing list