Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Cmake support

Hi,

I did a bit of comparison between the various possibilities:

* managed build + compile commands database parser
** the most flexible approach, works with any build system that can generate compile_commands.json
** the generation step is manual, creating different configurations require a bit of work, probably one would script it
** was not immediately clear that I had to enable the GCC built-in parser too, after that system symbols were indexed properly

* cmake4eclipse
** probably the best solution if using cmake, the generation step is integrated in the build, easy to create multiple configurations
** needs an additional plug-in

* core build cmake
** uses the compile commands file to feed the indexer, set-up is very simple
** suffers from the limitations of core build, e.g. complete lack of build configurations (at least there is no UI), not really usable beyond an hello-world project

I have updated my repository with three projects that use the above set-ups (https://github.com/fabrizioiannetti/cdt-by-example)

Martin, I see your plug-in provides two additional parsers, one being for the built-ins, what is the difference with the GCC built-ins?
does it take into consideration the toolchain defined in cmake?

cheers
Fabrizio


On Mon, 20 Jan 2020 at 20:24, Mark B <marco.stornelli@xxxxxxxxx> wrote:
Yes, you are right, I meant that you need to create a "cdt managed-like" project in order to adjust discovery options. There's no way to do something similar with CDT cmake project.

Il lun 20 gen 2020, 20:21 15 knots <fifteenknots505@xxxxxxxxx> ha scritto:

Am Mo., 20. Jan. 2020 um 19:51 Uhr schrieb Mark B <marco.stornelli@xxxxxxxxx>:
The plugin works but I wanted to check what's the current status of cdt. Honestly I think what we have is quite far from a production solution. Too many problems to setup a project. When you create a cmake project there's no scanner option so you can't adjust anything about symbol discovery or at least I didn't find how to do it. Indeed when you setup a project using the plug-in you need to create a c/c++ project using "cmake driven" option letting you use setup a plug-in provided "provider" for discovery, more or less what the database parser suggested
 
The "cmake driven" option is something that comes from cmake4eclipse, not from CDT.

Martin

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

Back to the top