[cmake-developers] [CMake 0014722]: eclipse generator creates invalid .cproject file
Mantis Bug Tracker
mantis at public.kitware.com
Mon Jan 27 15:40:16 EST 2014
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=14722
======================================================================
Reported By: Felix Schwitzer
Assigned To:
======================================================================
Project: CMake
Issue ID: 14722
Category: (No Category)
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-01-27 15:40 EST
Last Modified: 2014-01-27 15:40 EST
======================================================================
Summary: eclipse generator creates invalid .cproject file
Description:
When in a project 'find_package(Qt4)' is used, the generated .cproject file is
invalid. After opening such a project in eclipse via 'File->import...->existing
projects into workspace' eclipse reports repeatedly
[Fatal Error] :24:30: The value of attribute "name" associated with an element
type "null" must not contain the '<' character.
slowing down eclipse and filling the terminal from which I started eclipse with
garbage.
Steps to Reproduce:
Minimal CMakeLists.txt in ~/src:
cmake_minimum_required(VERSION 2.8.11)
project(ttt)
find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})
Generate the project with
cmake -G"Eclipse CDT4 - Unix Makefiles" ../src
in ~/build and import it into eclipse, started from a terminal to see the output
Additional Information:
This only happens if 'include(${QT_USE_FILE})' is present in the CMakeLists.txt
the invalid line in .cproject looks like
<pathentry kind="mac" name="$<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG>" path=""
value=""/>
and a xml-editor reports an error (I use emacs with nXML-mode)
The error is preesent in the actual master-branch.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-01-27 15:40 Felix SchwitzerNew Issue
======================================================================
More information about the cmake-developers
mailing list