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>
master
Michael Cho 2022-09-24 13:00:08 -07:00 committed by BrewTestBot
parent 57a30c5e19
commit 394875a930
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 3 additions and 3 deletions

View File

@ -25,15 +25,15 @@ class Lcm < Formula
def install def install
# Adding RPATH in #{lib}/lua/X.Y/lcm.so and some #{bin}/*. # Adding RPATH in #{lib}/lua/X.Y/lcm.so and some #{bin}/*.
args = std_cmake_args + %W[ args = %W[
-DCMAKE_INSTALL_RPATH=#{lib} -DCMAKE_INSTALL_RPATH=#{lib}
-DLCM_ENABLE_EXAMPLES=OFF -DLCM_ENABLE_EXAMPLES=OFF
-DLCM_ENABLE_TESTS=OFF -DLCM_ENABLE_TESTS=OFF
-DLCM_JAVA_TARGET_VERSION=8 -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", "--build", "build"
system "cmake", "--install", "build" system "cmake", "--install", "build"
end end