aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-compliance/Makefile.am
diff options
context:
space:
mode:
authorIsmo Puustinen <ismo.puustinen@intel.com>2017-04-03 14:53:37 +0300
committerHans Verkuil <hans.verkuil@cisco.com>2017-04-03 14:11:04 +0200
commitbd98c9a99bffc8d44c54859345e4dfee0ada4275 (patch)
treec17313a172d101e264f28094494e7bb89fe28f4b /utils/v4l2-compliance/Makefile.am
parent984caeac9a41f8d4f636b933dfba4f29c5257f96 (diff)
buildsystem: do not assume building in source tree.
Use $(top_srcdir) as reference for include paths and buildtime scripts. Otherwise compilation outside of project root directory will fail because header and script paths are wrong. To reproduce: mkdir b; cd b; ../configure; make Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/v4l2-compliance/Makefile.am')
-rw-r--r--utils/v4l2-compliance/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/v4l2-compliance/Makefile.am b/utils/v4l2-compliance/Makefile.am
index 03db8dff..18b98923 100644
--- a/utils/v4l2-compliance/Makefile.am
+++ b/utils/v4l2-compliance/Makefile.am
@@ -5,7 +5,7 @@ DEFS :=
v4l2_compliance_SOURCES = v4l2-compliance.cpp v4l2-test-debug.cpp v4l2-test-input-output.cpp \
v4l2-test-controls.cpp v4l2-test-io-config.cpp v4l2-test-formats.cpp v4l2-test-buffers.cpp \
v4l2-test-codecs.cpp v4l2-test-colors.cpp v4l2-compliance.h
-v4l2_compliance_CPPFLAGS = -I../common
+v4l2_compliance_CPPFLAGS = -I$(top_srcdir)/utils/common
if WITH_V4L2_COMPLIANCE_LIBV4L
v4l2_compliance_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4lconvert/libv4lconvert.la -lrt -lpthread

Privacy Policy