From 680b32d600c7ccdbbd0a4552df03f8aec0cf8d73 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 18 Mar 2021 16:25:34 -0400 Subject: [PATCH] fix: use the configured cmake binary Use the configure cmake binary in the examples Makefile instead of a direct call. Change-Id: Idb66642345e551b427e359b9cd58f49aad2a8502 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- configure.ac | 4 ++-- doc/examples/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index b93d2096..a7ec5a51 100644 --- a/configure.ac +++ b/configure.ac @@ -73,8 +73,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], [ diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index c6367976..dc18d650 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -175,7 +175,7 @@ all-local: AR="$(AR)" \ 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)" \ -- 2.34.1