From 0363661e12053e578f5cae7e29108c7029ed74ae Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 8 Jul 2016 13:13:32 -0400 Subject: [PATCH] Fix: CMake example: specify source/built includes/libs Fixes: #1042 Signed-off-by: Philippe Proulx Signed-off-by: Mathieu Desnoyers --- doc/examples/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index cb46d2c2..3cb3e3d7 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -145,7 +145,7 @@ all-local: fi; if [ x"$(SUBDIRS_CMAKE)" != x"" ]; then \ for subdir in $(SUBDIRS_CMAKE); do \ - (cd $(SUBDIRS_CMAKE) && mkdir -p build && cd build && cmake .. && $(MAKE) && cd ..) || exit 1; \ + (cd $(SUBDIRS_CMAKE) && mkdir -p build && cd build && cmake -DCMAKE_INCLUDE_PATH="$(abs_top_srcdir)/include;$(abs_top_builddir)/include" -DCMAKE_LIBRARY_PATH="$(abs_top_builddir)/liblttng-ust/.libs" .. && $(MAKE) && cd ..) || exit 1; \ done; \ fi; -- 2.34.1