Skip to content

Commit 5342f05

Browse files
author
Christian Hergert
committed
build: fix out of tree builds.
1 parent 96b922e commit 5342f05

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/Makefile.am

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ EXAMPLE_LDADD = libmongoc-1.0.la
44
if EXPLICIT_LIBS
55
EXAMPLE_LDADD += $(BSON_LIBS)
66
endif
7-
EXAMPLE_CFLAGS = -I$(top_srcdir)/src/mongoc $(BSON_CFLAGS)
7+
EXAMPLE_CFLAGS = \
8+
-I$(top_srcdir)/src/mongoc \
9+
-I$(top_builddir)/src/mongoc \
10+
$(BSON_CFLAGS)
811

912
noinst_PROGRAMS += example-gridfs
1013
example_gridfs_SOURCES = examples/example-gridfs.c

0 commit comments

Comments
 (0)