Fix tests build for different gpgmepp prefix
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 5 Nov 2018 08:11:14 +0000 (09:11 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 5 Nov 2018 08:11:14 +0000 (09:11 +0100)
* tests/Makefile.am: Add GPGME_CXXFLAGS to CXXFLAGS.

tests/Makefile.am

index dfb96b0..336794f 100644 (file)
@@ -32,11 +32,11 @@ if !HAVE_W32_SYSTEM
 AM_CXXFLAGS = -I$(top_srcdir)/src $(GPGME_CFLAGS) $(GPGME_CFLAGS)/gpgme++ \
                          $(LIBASSUAN_CFLAGS) -std=c++11  -D_FILE_OFFSET_BITS=64 \
                          -DBUILD_TESTS -DDATADIR=\"$(abs_srcdir)/data\" \
-              -DGPGHOMEDIR=\"$(abs_srcdir)/gnupg_home\"
+              -DGPGHOMEDIR=\"$(abs_srcdir)/gnupg_home\" $(GPGMEPP_CXXFLAGS)
 else
 AM_CXXFLAGS = -I$(top_srcdir)/src $(GPGME_CFLAGS) $(GPGME_CFLAGS)/gpgme++ \
-                         $(LIBASSUAN_CFLAGS) -std=c++11  -D_FILE_OFFSET_BITS=64 \
-                         -DBUILD_TESTS
+                         $(LIBASSUAN_CFLAGS) $(GPGMEPP_CXXFLAGS) -std=c++11 \
+                         -D_FILE_OFFSET_BITS=64 -DBUILD_TESTS
 endif
 LDADD = @GPG_ERROR_LIBS@