View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014722CMake(No Category)public2014-01-27 15:402016-04-17 15:46
ReporterFelix Schwitzer 
Assigned ToAlex Neundorf 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
Platformubuntu 13.10OSLinuxOS Version
Product Version 
Target VersionFixed in Version 
Summary0014722: eclipse generator creates invalid .cproject file
DescriptionWhen 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 ReproduceMinimal 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 InformationThis 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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0038535)
Felix Schwitzer (reporter)
2015-04-16 15:50

This issue has been fixed with

http://www.cmake.org/gitweb?p=cmake.git;a=commit;h=311c0b9 [^]

please resolve/close it as fixed
(0040875)
Alex Neundorf (developer)
2016-04-17 15:46

It seems Stephen fixed this already in 2014.

 Issue History
Date Modified Username Field Change
2014-01-27 15:40 Felix Schwitzer New Issue
2014-01-27 15:57 Alex Neundorf Assigned To => Alex Neundorf
2014-01-27 15:57 Alex Neundorf Status new => assigned
2015-04-16 15:50 Felix Schwitzer Note Added: 0038535
2016-04-17 15:46 Alex Neundorf Note Added: 0040875
2016-04-17 15:46 Alex Neundorf Status assigned => closed
2016-04-17 15:46 Alex Neundorf Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team