Page MenuHome GnuPG

alternate header directory (--includedir) isn't set in GpgmeppConfig.cmake
Closed, ResolvedPublic

Description

Systems installing both KF5 gpgmepp (or KDEPIMLibs 4) run into header file
confusion or conflict when also installing the C++ wrappers from gpgme.

To avoid most cases of confusion (where headers are included from include/gpgme++
instead of include/KF5/gpgme++) gpgme can be built to install its headers in a
private location like include/gpgme, using --includedir=${prefix}/include/gpgme.

This works, but currently requires manual editing of Gpgmeppconfig.cmake because
the default include directory is hardcoded in its template file. I think that's a
bug.

Event Timeline

I think this was already resolved by:

https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=commitdiff;h=7302791c0d308c3284ac24a743035d27a0c0b6ba

Please let me know if it still does not work for you.

It seems like indeed it should have been resolved. I have also resolved the issue
by moving the old headers from KDEPIMLibs 4 to a private location, and KF5
projects have apparently been updated to work with gpgme++ installed in
$prefix/include/gpgme++ .