From 394875a930206e0078af6d01e937e17311e7ba08 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sat, 24 Sep 2022 13:00:08 -0700 Subject: [PATCH] lcm: fix `python3` reference Closes #111611. Signed-off-by: Branch Vincent <19800529+branchvincent@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- Formula/lcm.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Formula/lcm.rb b/Formula/lcm.rb index b0b8304a5a3..9c105835ea3 100644 --- a/Formula/lcm.rb +++ b/Formula/lcm.rb @@ -25,15 +25,15 @@ class Lcm < Formula def install # Adding RPATH in #{lib}/lua/X.Y/lcm.so and some #{bin}/*. - args = std_cmake_args + %W[ + args = %W[ -DCMAKE_INSTALL_RPATH=#{lib} -DLCM_ENABLE_EXAMPLES=OFF -DLCM_ENABLE_TESTS=OFF -DLCM_JAVA_TARGET_VERSION=8 - -DPYTHON_EXECUTABLE=#{which("python3")} + -DPYTHON_EXECUTABLE=#{which("python3.10")} ] - system "cmake", "-S", ".", "-B", "build", *args + system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args system "cmake", "--build", "build" system "cmake", "--install", "build" end