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