Hi,
I recently discovered that when linking to a PkgConfig dependency, the cflags specified in the .pc
file are not automatically added to the target compile command. I think it’d be fantastic to have cflags be usage requirements for IMPORTED_TARGET
s (just like include dirs).
Please see detailed repro steps in this related issue here: How to correctly generate compile_commands.json for library dependency using PkgConfig?