Skip to content

Commit a42f6f5

Browse files
committed
ibex: update to use modern cmake syntax
Signed-off-by: Rui Chen <[email protected]>
1 parent a2181a4 commit a42f6f5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Formula/i/ibex.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ class Ibex < Formula
3131
def install
3232
ENV.cxx11
3333

34-
mkdir "build" do
35-
system "cmake", "..", *std_cmake_args.reject { |s| s["CMAKE_INSTALL_LIBDIR"] }
36-
system "make", "SHARED=true"
37-
system "make", "install"
38-
end
34+
system "cmake", "-S", ".", "-B", "build", *std_cmake_args.reject { |s| s["CMAKE_INSTALL_LIBDIR"] }
35+
system "cmake", "--build", "build", "--", "SHARED=true"
36+
system "cmake", "--install", "build"
3937

4038
pkgshare.install %w[examples benchs/solver]
4139
(pkgshare/"examples/symb01.txt").write <<~EOS

0 commit comments

Comments
 (0)