aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2024-07-10 21:28:27 +0000
committerIngo Klöcker <[email protected]>2024-07-10 21:28:27 +0000
commite46748a0d18b8a6d26e6b386f64a99a5cdc6a6e3 (patch)
tree7c144d6f0e2b29fd863bb469a032049cbe3a1b7a /lang
parentqt: Replace usage of deprecated Error::asString (diff)
downloadgpgme-e46748a0d18b8a6d26e6b386f64a99a5cdc6a6e3.tar.gz
gpgme-e46748a0d18b8a6d26e6b386f64a99a5cdc6a6e3.zip
build,cpp: Fix include paths in forwarding headers in gpgme++ folder
* lang/cpp/src/Makefile.am (build rule for copied headers): Write abs_srcdir instead of srcdir in the generated headers. -- The generated include paths lacked a "../" if srcdir was relative. This lead to self-including includes for in-source builds. Including the real headers with their absolute paths fixes this. GnuPG-bug-id: 7110
Diffstat (limited to 'lang')
-rw-r--r--lang/cpp/src/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/cpp/src/Makefile.am b/lang/cpp/src/Makefile.am
index a2edb49e..fd30ce21 100644
--- a/lang/cpp/src/Makefile.am
+++ b/lang/cpp/src/Makefile.am
@@ -92,7 +92,7 @@ copied_headers = $(gpgmepp_headers:%=gpgme++/%) $(interface_headers:%=gpgme++/%)
$(copied_headers): Makefile.am
mkdir -p $(builddir)/gpgme++/interfaces
- echo -n "#include \"$(srcdir)" > "$@"
+ echo -n "#include \"$(abs_srcdir)" > "$@"
echo -n "$@" | sed "s/gpgme++//" >> "$@"
echo "\"" >> "$@"