Cpp: Ensure gpgme.h is taken from current build
authorAndre Heinecke <aheinecke@intevation.de>
Wed, 11 May 2016 12:56:20 +0000 (14:56 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Wed, 11 May 2016 12:56:20 +0000 (14:56 +0200)
* lang/cpp/src/Makefile.am (AM_CPPFLAGS): Add gpgme.h location.
--
This fixes the build in case an incompatible gpgme.h is also
installed in other include locations.

lang/cpp/src/Makefile.am

index 24e0461..d3d28ce 100644 (file)
@@ -59,7 +59,8 @@ nobase_gpgmeppinclude_HEADERS = $(interface_headers)
 libgpgmepp_la_SOURCES = $(main_sources) $(gpgmepp_headers) context_vanilla.cpp \
                         $(interface_headers) $(private_gpgmepp_headers)
 
-AM_CPPFLAGS = @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@ -DBUILDING_GPGMEPP
+AM_CPPFLAGS = -I$(top_builddir)/src @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@ \
+              -DBUILDING_GPGMEPP
 
 libgpgmepp_la_LIBADD = ../../../src/libgpgme.la @LIBASSUAN_LIBS@
 libgpgmepp_la_LDFLAGS = -version-info \