background parser unaware of tokens set with CMake's add_definitions()?

Aleix Pol aleixpol at kde.org
Tue Nov 8 01:10:14 UTC 2016


On Mon, Nov 7, 2016 at 4:01 PM, René J.V. Bertin <rjvbertin at gmail.com> wrote:
> On Monday November 07 2016 15:53:22 René J.V. Bertin wrote:
>
>> Doesn't work (reliably) for me; for example the CONFIG_WRITE and CONFIG_DIALOG tokens set in QtCurve's qt5 branch when building with "KDE5" support are considered to be not defined (whereas they are in the build).
>
> Addendum: those tokens are set in the config subdir; the parser doesn't know about them in the parallel "common" subdir which has its own CMake file.

Check whether they're in compile_commands.json. If not, I'd recommend
to create a test case and report to upstream cmake directly.

Aleix


More information about the KDevelop-devel mailing list