From 02f0913cde2e3d11e1ac170f8fa1e115c5f9c2e7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 14 Dec 2023 10:50:53 +0000 Subject: [PATCH] vrpn: fix MacOS references. Needed after https://github.com/Homebrew/brew/pull/16306. --- Formula/v/vrpn.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Formula/v/vrpn.rb b/Formula/v/vrpn.rb index 4adeaac0dc22..76b9b6482bf3 100644 --- a/Formula/v/vrpn.rb +++ b/Formula/v/vrpn.rb @@ -24,10 +24,13 @@ class Vrpn < Formula def install mkdir "build" do - system "cmake", "..", *std_cmake_args, - "-DCMAKE_OSX_SYSROOT=#{MacOS.sdk_path}", - "-DVRPN_BUILD_CLIENTS:BOOL=OFF", - "-DVRPN_BUILD_JAVA:BOOL=OFF" + cmake_args = [ + "-DVRPN_BUILD_CLIENTS:BOOL=OFF", + "-DVRPN_BUILD_JAVA:BOOL=OFF", + ] + cmake_args << "-DCMAKE_OSX_SYSROOT=#{MacOS.sdk_path}" if OS.mac? + + system "cmake", "..", *std_cmake_args, *cmake_args system "make", "install" end end