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.
This commit is contained in:
Nicolas Despres 2011-04-28 16:11:24 +02:00
parent 96bb4cf49d
commit 4930ea7dab

View File

@ -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 \