From 1c2c6923f5cef24df51b4353fdb453dab70fe382 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Fri, 26 Jul 2024 17:39:55 -0400 Subject: [PATCH] gaffitter: use modern cmake syntax Signed-off-by: Rui Chen --- Formula/g/gaffitter.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Formula/g/gaffitter.rb b/Formula/g/gaffitter.rb index 0f7024f4a6a463..6d7a36c1fbc669 100644 --- a/Formula/g/gaffitter.rb +++ b/Formula/g/gaffitter.rb @@ -25,10 +25,9 @@ class Gaffitter < Formula depends_on "cmake" => :build def install - mkdir "build" do - system "cmake", "..", *std_cmake_args - system "make", "install" - end + system "cmake", "-S", ".", "-B", "build", *std_cmake_args + system "cmake", "--build", "build" + system "cmake", "--install", "build" end test do