From: Daniel Vetter Subject: Re: [PATCH] fix out-of-tree builds Date: Fri, 21 Mar 2014 10:55:44 +0100 Message-ID: <20140321095544.GX30571@phenom.ffwll.local> References: <1395385575-17761-1-git-send-email-groleo@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f45.google.com (mail-ee0-f45.google.com [74.125.83.45]) by gabe.freedesktop.org (Postfix) with ESMTP id E528D6E28D for ; Fri, 21 Mar 2014 02:55:49 -0700 (PDT) Received: by mail-ee0-f45.google.com with SMTP id d17so1587156eek.18 for ; Fri, 21 Mar 2014 02:55:48 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1395385575-17761-1-git-send-email-groleo@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Adrian Negreanu Cc: intel-gfx@lists.freedesktop.org, Adrian Negreanu List-Id: intel-gfx@lists.freedesktop.org On Fri, Mar 21, 2014 at 09:06:15AM +0200, Adrian Negreanu wrote: > From: Adrian Negreanu > > version.h is -include-ed assuming that builddir is the same > as srcdir; > > In file included from :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 Thanks for the patch, applied. -Daniel > --- > 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 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch