From: Philippe Proulx Date: Fri, 8 Jul 2016 17:13:32 +0000 (-0400) Subject: Fix: CMake example: specify source/built includes/libs X-Git-Tag: v2.9.0-rc1~39 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0363661e12053e578f5cae7e29108c7029ed74ae;p=lttng-ust.git Fix: CMake example: specify source/built includes/libs Fixes: #1042 Signed-off-by: Philippe Proulx Signed-off-by: Mathieu Desnoyers --- 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;