Add include flags for test directory.
authorPetter Urkedal <paurkedal@gmail.com>
Sun, 14 Aug 2011 10:17:28 +0000 (12:17 +0200)
committerPetter Urkedal <paurkedal@gmail.com>
Sun, 14 Aug 2011 10:41:56 +0000 (12:41 +0200)
* tests/Makefile.am (AM_CPPFLAGS): Include flag for the tests
sub-directory is needed when the build directory is different from the
source directory.

tests/Makefile.am

index 3a339e4..acf699b 100644 (file)
@@ -6,7 +6,9 @@ EXTRA_DIST=test_atomic_include.template list_atomic.template run_parallel.h \
 BUILT_SOURCES = test_atomic_include.h list_atomic.i
 CLEANFILES = list_atomic.i
 
-AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src
+AM_CPPFLAGS = \
+       -I$(top_builddir)/src -I$(top_srcdir)/src \
+       -I$(top_builddir)/tests -I$(top_srcdir)/tests
 
 TESTS=test_atomic test_atomic_pthreads test_stack test_malloc