[CMake] Patch for Eclipse generator

Pau Garcia i Quiles pgquiles at elpauer.org
Thu Oct 18 19:18:05 EDT 2007


Hello,

As I told yesterday, here comes a patch for the Eclipse CDT4 generator  
available in the current CVS version of CMake.

Although I have not extensively tested it, the works fine. In addition  
to the in-tree build which has always worked, this patch allows you to  
have 'myapp' and 'myapp/build' or 'myapp' and 'myapp-build' at the  
same level:

mydir/myapp
mydir/myapp/build

or

mydir/myapp
mydir/myapp-build

The patch breaks the CMake way of doing thing, as it writes the  
Eclipse project files (.project and .cproject) in the source directory  
even in an out-of-tree build.

Tomorrow I'll try to implement a new property, or look at the value of  
a variable, to make it possible to use the pure-CMake style (.project  
and .cproject in the generated-files directory) or the  
Eclipse-required style (.project and .cproject in the source directory).

Please try it and send your comments to the list or to me.

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmExtraEclipseCDT4Generator.cxx.diff
Type: text/x-diff
Size: 6538 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20071019/d3e96d8a/cmExtraEclipseCDT4Generator.cxx.bin


More information about the CMake mailing list