MantisBT - CMake
View Issue Details
0009631CMakeCMakeSetuppublic2009-10-01 11:112010-12-13 16:07
Bob Kerr 
Alex Neundorf 
normalfeaturealways
closedfixed 
CMake-2-6 
CMake 2.8.4CMake 2.8.4 
0009631: Would like cmake-gui to include option for generating CDT4_GENERATE_SOURCE_PROJECT=TRUE
Currently, I can generate the CDT4 (eclipse) project for a source tree which is linked to my build tree using the following syntax:
cmake -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE <srcdir>
It would be really handy to have that be an option in cmake-gui, so I don't have to run cmake first, before running cmake-gui.
No tags attached.
Issue History
2009-10-01 11:11Bob KerrNew Issue
2009-10-01 11:52Bill HoffmanStatusnew => assigned
2009-10-01 11:52Bill HoffmanAssigned To => Alex Neundorf
2009-10-01 11:53Bill HoffmanNote Added: 0017868
2009-10-01 13:23Alex NeundorfNote Added: 0017871
2009-10-01 13:24Alex NeundorfNote Added: 0017872
2009-10-01 13:24Alex NeundorfAssigned ToAlex Neundorf => Miguel Figueroa
2010-12-12 14:33Alex NeundorfAssigned ToMiguel Figueroa => Alex Neundorf
2010-12-13 16:07Alex NeundorfNote Added: 0023934
2010-12-13 16:07Alex NeundorfStatusassigned => closed
2010-12-13 16:07Alex NeundorfResolutionopen => fixed
2010-12-13 16:07Alex NeundorfFixed in Version => CMake 2.8.4
2010-12-13 16:07Alex NeundorfTarget Version => CMake 2.8.4

Notes
(0017868)
Bill Hoffman   
2009-10-01 11:53   
You can add a variable in cmake-gui, click on the add-entry button.

That said, Alex, should this be a default cache variable for this generator, or a default value?
(0017871)
Alex Neundorf   
2009-10-01 13:23   
I don't know.
The thing is, Eclipse has issues with out-of-source builds.
With this flag enabled you can force cmake to generate an additional Eclipse project file in the source directory.
Because generating something in the source dir is usually a really bad thing to do, this flag has such a long name.
I wouldn't object making this a default cache variable for this generator, with the default to OFF.

Alex
(0017872)
Alex Neundorf   
2009-10-01 13:24   
Miguel, what do you think ?

Alex
(0023934)
Alex Neundorf   
2010-12-13 16:07   
I just committed this change to next, it is now an ADVANCED cache variable, so you can simply switch it on using cmake-gui.