Support of Compilation Databases

Milian Wolff mail at milianw.de
Tue Oct 23 09:15:23 BST 2018


On Montag, 22. Oktober 2018 21:33:28 CEST Toni Dietze wrote:
> Hello,
> 
> I have a project with an involved build system and was quite happy to
> read that kdevelop supports compilation databases [1]. However, I was
> not able to find out how to convince kdevelop to use my compilation
> database. I have two questions:
> 
> 1. If I have a cmake project with enabled
> CMAKE_EXPORT_COMPILE_COMMANDS, how do I notice that kdevelop actually
> uses the generated compilation database?

Since some time, we prefer the cmake server mode over the compilation 
database. Generally, you shouldn't need to enable 
CMAKE_EXPORT_COMPILE_COMMANDS yourself - just open a cmake project in KDevelop 
and everything should be handled automatically for you.

> 2. Is it possible to load an arbitrary compilation database as
> a project? This would be a great feature. It would already be helpful
> if the code is only opened read-only just for browsing.

Yes, that's indeed a good idea. But so far, it's not implemented from what I 
can remember. Adding such a feature to the custom buildsystem project manager 
would be a welcome addition!

Cheers

> [1] http://kfunk.org/2016/08/23/whats-new-in-kdevelop-5-0/#cmakesupport


-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20181023/1bbbec26/attachment.sig>


More information about the KDevelop mailing list