MantisBT - CMake
View Issue Details
0011451CMakeCMakepublic2010-11-12 14:022010-11-17 10:48
Bob O'Bara 
Marcus D. Hanwell 
normalfeaturehave not tried
closedfixed 
CMake 2.8.3 
CMake 2.8.4CMake 2.8.4 
0011451: Generating CodeBlocks Makefiles with External Projects
Currently only the top-level makefiles are generated properly. The lower level ones do not have code-blocks.
No tags attached.
Issue History
2010-11-12 14:02Bob O'BaraNew Issue
2010-11-12 14:04David ColeAssigned To => Marcus D. Hanwell
2010-11-12 14:04David ColeStatusnew => assigned
2010-11-12 14:04David ColeTarget Version => CMake 2.8.4
2010-11-12 14:10Eric NOULARDNote Added: 0023217
2010-11-12 14:17Alex NeundorfNote Added: 0023221
2010-11-12 14:20Marcus D. HanwellNote Added: 0023223
2010-11-12 19:48Marcus D. HanwellNote Added: 0023232
2010-11-13 13:53Marcus D. HanwellNote Added: 0023244
2010-11-13 13:53Marcus D. HanwellStatusassigned => confirmed
2010-11-17 10:48Marcus D. HanwellNote Added: 0023347
2010-11-17 10:48Marcus D. HanwellStatusconfirmed => closed
2010-11-17 10:48Marcus D. HanwellResolutionopen => fixed
2010-11-17 10:48Marcus D. HanwellFixed in Version => CMake 2.8.4

Notes
(0023217)
Eric NOULARD   
2010-11-12 14:10   
I'm using CodeBlocks generator from time to time
(mainly on Windows) I don't get your point
may be you could provide a small minimal example
which exhibit the trouble?
(0023221)
Alex Neundorf   
2010-11-12 14:17   
Hi Bob :-)

is Marcus working on this ?
Because for me the description is a bit insufficient.
Is there a problem with the ExternalProject-support from Dave when using the CodeBlocks generator ?

Or do you mean that there is only a codeblocks project file generated for the toplevel cmake-project ?

Alex
(0023223)
Marcus D. Hanwell   
2010-11-12 14:20   
Alex, I have most of this written and agreed to finish it off and commit it. It is a little more general - we need to ensure the extra generator part is not lost when passing it into the external projects.
(0023232)
Marcus D. Hanwell   
2010-11-12 19:48   
Commit 74e49aa should address this issue. It is on the stage, and I will merge it into next in the morning. It is topic EP-extra-generator if you want to try it before then. You can safely copy this into your own project's CMake module path to override the provided external project code. I will be removing a fair few lines from Titan once this is in there.
(0023244)
Marcus D. Hanwell   
2010-11-13 13:53   
That is in next, if you have a project where you want to use it copying ExternalProject.cmake into the module path will be enough - I did this in Titan and removed all special handling of the extra generator variable from Titan itself.
(0023347)
Marcus D. Hanwell   
2010-11-17 10:48   
This has been merged into CMake master, and will be in the next CMake release.