Skip to content

Commit

Permalink
gaffitter: use modern cmake syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Jul 26, 2024
1 parent 9f46f6d commit 1c2c692
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Formula/g/gaffitter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c2c692

Please sign in to comment.