Includes should be part of *_CPPFLAGS, not *_CFLAGS; since
we have to move the include around anyway, might as well
make it global instead of limiting it to the single test
binary we're building at the moment.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
tests/Makefile.am | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index bf2dbbc..03d51aa 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,3 +1,7 @@
+AM_CPPFLAGS = \
+ -I$(top_srcdir)/src \
+ $(NULL)
+
test_helpers = \
xmldata.py \
libvirttest.py \
@@ -16,7 +20,6 @@ check_PROGRAMS = \
test_util_SOURCES = \
test_util.c $(top_srcdir)/src/util.c
test_util_CFLAGS = \
- -I$(top_srcdir)/src \
$(GIO2_CFLAGS) \
$(GLIB2_CFLAGS) \
$(LIBVIRT_CFLAGS)
--
2.17.1