Codebase list virt-viewer / 9f30292
tests: Fix VPATH build So test-hotkeys include virt-viewer-app.h which includes virt-viewer-window.h which includes virt-viewer-display.h which in turn wants to include virt-viewer-enums.h. But, the enums header file is generated at build time into builddir not srcdir. Therefore it may happen if the two are distinct that compiler fails to find the enums file: In file included from ../../src/virt-viewer-window.h:29:0, from ../../src/virt-viewer-app.h:28, from ../../tests/test-hotkeys.c:27: ../../src/virt-viewer-display.h:28:31: fatal error: virt-viewer-enums.h: No such file or directory #include "virt-viewer-enums.h" ^ compilation terminated. The fix is to include builddir into paths where header files are looked for. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Acked-by: Fabiano FidĂȘncio <fidencio@redhat.com> Michal Privoznik authored 7 years ago Fabiano FidĂȘncio committed 7 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
22 AM_CPPFLAGS = \
33 -DLOCALE_DIR=\""$(datadir)/locale"\" \
44 -DG_LOG_DOMAIN=\"virt-viewer\" \
5 -I$(top_builddir)/src/ \
56 -I$(top_srcdir)/src/ \
67 -I$(top_srcdir)/tests/ \
78 $(GLIB2_CFLAGS) \