summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2016-11-04 17:37:27 -0500
committerPatrick Williams <patrick@stwcx.xyz>2016-11-04 17:37:27 -0500
commitc0c19673995d3841f5ffcd508a138a1c68e57ba7 (patch)
tree62154fdf29495b7ec588dfbd72c1bf8a7698b80f /test
parentfdd8ec557e9cb7048af3b63f2b2c3b8bc70fc0cb (diff)
downloadphosphor-host-ipmid-c0c19673995d3841f5ffcd508a138a1c68e57ba7.tar.gz
phosphor-host-ipmid-c0c19673995d3841f5ffcd508a138a1c68e57ba7.zip
build: fix out of tree builds
The test directory needs -I$(top_srcdir) in order to find the header files provided by the project itself. When doing an in-tree build, this is done automatically by automake due to 'config.h' being generated in the root. Change-Id: I5e59715657684a8019e9c48c835b29eb326f01a8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 6bed2cb..75658aa 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1,3 +1,4 @@
+AM_CPPFLAGS = -I$(top_srcdir)
check_PROGRAMS =
# Run all 'check' test programs
@@ -5,7 +6,7 @@ TESTS = $(check_PROGRAMS)
# Build/add sample_unittest to test suite
check_PROGRAMS += sample_unittest
-sample_unittest_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS)
+sample_unittest_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS)
sample_unittest_CXXFLAGS = $(PTHREAD_CFLAGS)
sample_unittest_LDFLAGS = -lgtest_main -lgtest $(PTHREAD_LIBS) $(OESDK_TESTCASE_FLAGS)
sample_unittest_SOURCES = sample_unittest.cpp
OpenPOWER on IntegriCloud