[Intel-gfx] [PATCH] fix out-of-tree builds

Adrian Negreanu groleo at gmail.com
Fri Mar 21 08:06:15 CET 2014


From: Adrian Negreanu <adrian.m.negreanu at intel.com>

version.h is -include-ed assuming that builddir is the same
as srcdir;

In file included from <command-line>:0:0:
./../../tests/../lib/check-ndebug.h:3:1: fatal error:
../../tests/../version.h: No such file or directory
 #endif
  ^

Signed-off-by: Adrian Negreanu <adrian.m.negreanu at intel.com>
---
 tests/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index aadcbc8..ddb0fd7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -24,7 +24,7 @@ AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) \
 	-I$(srcdir)/.. \
 	-I$(srcdir)/../lib \
 	-include "$(srcdir)/../lib/check-ndebug.h" \
-	-include "$(srcdir)/../version.h" \
+	-include "$(builddir)/version.h" \
 	-DIGT_DATADIR=\""$(abs_srcdir)"\" \
 	$(NULL)
 
-- 
1.9.0




More information about the Intel-gfx mailing list