MantisBT - CMake
View Issue Details
0014205CMakeCMakepublic2013-06-05 08:262013-06-12 05:29
Stefan Groißmeier 
Alex Neundorf 
normalmajoralways
closedfixed 
LinuxDebianWheezy 64-bit
CMake 2.8.11 
 
0014205: Eclipse Generator creates corrupt project files after file(GLOB GLOBAL_HDR ../include/*)
after opening the project file in the build directory, eclipse shows errormessages and stops to import the project.
the list received by
file(GLOB GLOBAL_HDR ../include/*)

includes all directorys, too.
the eclipse generator marks them as files.
Eclipse doesn't like that.
CMake 2.8.1 is generating a correct eclipse project file, while 2.8.7 and 2.8.11 and probably other versions are not.
No tags attached.
related to 0014204closed Alex Neundorf Eclipse Generator creates corrupt project files 
gz cmakeBug0014204Example.tar.gz (564) 2013-06-10 07:52
https://public.kitware.com/Bug/file/4785/cmakeBug0014204Example.tar.gz
Issue History
2013-06-05 08:26Stefan GroißmeierNew Issue
2013-06-05 08:34Stefan GroißmeierNote Added: 0033243
2013-06-05 17:34Alex NeundorfAssigned To => Alex Neundorf
2013-06-05 17:34Alex NeundorfStatusnew => assigned
2013-06-05 17:34Alex NeundorfNote Added: 0033246
2013-06-10 07:52Stefan GroißmeierFile Added: cmakeBug0014204Example.tar.gz
2013-06-10 07:53Stefan GroißmeierNote Added: 0033264
2013-06-12 05:24Alex NeundorfRelationship addedrelated to 0014204
2013-06-12 05:29Alex NeundorfNote Added: 0033277
2013-06-12 05:29Alex NeundorfStatusassigned => closed
2013-06-12 05:29Alex NeundorfResolutionopen => fixed

Notes
(0033243)
Stefan Groißmeier   
2013-06-05 08:34   
the folder in the include directory (.svn for example)
is resulting in a <link> element with <type>1</type> that should be <type>2</type>
(0033246)
Alex Neundorf   
2013-06-05 17:34   
Can you attach a sample CMakeLists.txt, which produces that problem ?
IOW, what do you do with the results of that glob ?
(0033264)
Stefan Groißmeier   
2013-06-10 07:53   
attached example project
(0033277)
Alex Neundorf   
2013-06-12 05:29   
Fixed and merged into next, same as 0012204.
CMake now checks whether the file is actually a file or a directory, and skips directories.