Fix: build: pass configure flags to cmake example
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 3 Oct 2016 14:42:45 +0000 (10:42 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 3 Oct 2016 15:07:42 +0000 (11:07 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/Makefile.am

index c7e5b68ff1d37e8e61cde11ae45d400a9fcab433..5d67e79141f85e7269acc6f0aa09e59845aba8a4 100644 (file)
@@ -149,7 +149,13 @@ all-local:
                                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" .. && \
+                               cmake \
+                               -DCMAKE_INCLUDE_PATH="$(abs_top_srcdir)/include;$(abs_top_builddir)/include" \
+                               -DCMAKE_LIBRARY_PATH="$(abs_top_builddir)/liblttng-ust/.libs" \
+                               -DCMAKE_C_FLAGS="$(CFLAGS) $(CPPFLAGS)" \
+                               -DCMAKE_CXX_FLAGS="$(CXXFLAGS) $(CPPFLAGS)" \
+                               -DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)" \
+                               .. && \
                                $(MAKE) && \
                                cd .. \
                        ) || exit 1; \
This page took 0.026891 seconds and 4 git commands to generate.