Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] cmake support how to integrate the compile_commands.json parser into CDT

Il mer 17 giu 2020, 21:02 15 knots <fifteenknots505@xxxxxxxxx> ha scritto:
Hi Alexander,

Am Mi., 17. Juni 2020 um 09:31 Uhr schrieb Alexander Fedorov
> Well, currently all these parts, such as the "server" and "front-end", are managed from the IDE.
> For example if user adds the source file - it needs to be added to json as well, and we need to guess the commands for this new unit, and for this we need to know how the surrounding units are configured.

Just *creating* a source file does not *add* it to the files that get
compiled. Cmake users must modify the CMakeLists.txt file to have the
new file compiled:

Unless you use a file glob option *.cpp in this case you don't need to modify it even if it's a discouraged approach actually.

Back to the top