Skip to content

Commit 4ae955f

Browse files
committed
mbelib: update to use modern cmake syntax
Signed-off-by: Rui Chen <[email protected]>
1 parent b090b00 commit 4ae955f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Formula/m/mbelib.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ class Mbelib < Formula
2727
depends_on "cmake" => :build
2828

2929
def install
30-
mkdir "build" do
31-
system "cmake", "..", *std_cmake_args
32-
system "make"
33-
system "make", "test"
34-
system "make", "install"
35-
end
30+
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
31+
system "cmake", "--build", "build"
32+
system "cmake", "--build", "build", "--target", "test"
33+
system "cmake", "--install", "build"
3634
end
3735

3836
test do

0 commit comments

Comments
 (0)