Skip to content

Commit

Permalink
libaec: use modern cmake syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>

libaec: update cmake

Co-authored-by: Carlo Cabrera <[email protected]>
  • Loading branch information
chenrui333 and carlocab committed Sep 7, 2024
1 parent 9068d4e commit 50f60e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Formula/lib/libaec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ class Libaec < Formula
link_overwrite "lib/libsz.so.2"

def install
mkdir "build" do
# We run `make test` for libraries
system "cmake", "..", *std_cmake_args, "-DBUILD_TESTING=ON"
system "make", "install"
system "make", "test"
end
# run ctest for libraries, also added `"-DBUILD_TESTING=ON` in the end as
# `std_cmake_args` has `BUILD_TESTING` off
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, "-DBUILD_TESTING=ON"
system "cmake", "--build", "build"
system "ctest", "--test-dir", "build", "--verbose"
system "cmake", "--install", "build"
end

test do
Expand Down

0 comments on commit 50f60e2

Please sign in to comment.