davea42 / libdwarf-code

Contains source for libdwarf, a library for reading DWARF2 and later DWARF. Contains source to create dwarfdump, a program which prints DWARF2 and later DWARF in readable format. Has a very limited DWARF writer set of functions in libdwarfp (producer library). Builds using GNU configure, meson, or cmake.
Other
173 stars 70 forks source link

Specify a cmake export set #268

Closed jeremy-rifkin closed 4 days ago

jeremy-rifkin commented 1 week ago

I got an issue on my library cpptrace about specifying an export set in cmake https://github.com/jeremy-rifkin/cpptrace/issues/189. It looks like it's important to both install(EXPORT) and export() in cmake.

In order to patch this in my repository, it looks like libdwarf needs to define an export set too. This PR implements this. Tested locally and things seem ok.

davea42 commented 4 days ago

It's not causing any problems in my cmake builds.

jeremy-rifkin commented 3 days ago

Thanks Dave! It has worked for me as well but I guess this only causes problems when a target tries to define an export() set while also using libdwarf.