fix: use the configured cmake binary
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 18 Mar 2021 20:25:34 +0000 (16:25 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 22 Mar 2021 21:11:42 +0000 (17:11 -0400)
Use the configure cmake binary in the examples Makefile instead of a
direct call.

Change-Id: Idb66642345e551b427e359b9cd58f49aad2a8502
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac
doc/examples/Makefile.am

index 16cdec747482e43fa89352dc73404c9cea9e5c37..2264e50394b3e02840393eb128f36a83fada32aa 100644 (file)
@@ -72,8 +72,8 @@ AC_PROG_GREP
 AC_PROG_LN_S
 AC_PROG_MKDIR_P
 AC_PROG_MAKE_SET
-AC_CHECK_PROG([HAVE_CMAKE], [cmake], ["yes"])
-AM_CONDITIONAL([HAVE_CMAKE], [test "x$HAVE_CMAKE" = "xyes"])
+AC_CHECK_PROG([CMAKE], [cmake])
+AM_CONDITIONAL([HAVE_CMAKE], [test "x$CMAKE" != "x"])
 
 # libtool link_all_deplibs fixup. See http://bugs.lttng.org/issues/321.
 AC_ARG_ENABLE([libtool-linkdep-fixup], [
index 9413ff12404ff5b163b5c2ea29cf46a656fe0885..e03824d999fc0b6adefc2835806532e67f68a00c 100644 (file)
@@ -147,7 +147,7 @@ all-local:
                                cd build && \
                                CC="$(CC)" \
                                CXX="$(CXX)" \
-                               cmake \
+                               $(CMAKE) \
                                -DCMAKE_INCLUDE_PATH="$(abs_top_srcdir)/include;$(abs_top_builddir)/include" \
                                -DCMAKE_LIBRARY_PATH="$(abs_top_builddir)/liblttng-ust/.libs" \
                                -DCMAKE_C_FLAGS="$(AM_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)" \
This page took 0.027028 seconds and 4 git commands to generate.