From 4930ea7dabdd1582f2fa36e0c2757df2e5f1328f Mon Sep 17 00:00:00 2001 From: Nicolas Despres Date: Thu, 28 Apr 2011 16:11:24 +0200 Subject: [PATCH] Fix make check when builddir != srcdir. make check was not able to compile test programs when the builddir is not the same than the srcdir, because relative path were used. --- cpp/test/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/test/Makefile.am b/cpp/test/Makefile.am index 5aeb8f19..af56d3be 100644 --- a/cpp/test/Makefile.am +++ b/cpp/test/Makefile.am @@ -1,7 +1,7 @@ -AM_CPPFLAGS = -I../src -AM_C_CPPFLAGS = -I../src -AM_LDFLAGS = ../src/libmsgpack.la -lgtest_main -pthread +AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src +AM_C_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src +AM_LDFLAGS = $(top_builddir)/src/libmsgpack.la -lgtest_main -pthread check_PROGRAMS = \ zone \