Skip to content

Commit

Permalink
ensmallen: 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 49769b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Formula/e/ensmallen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ class Ensmallen < Formula
depends_on "armadillo"

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 All @@ -33,6 +32,7 @@ def install
return 0;
}
EOS

system ENV.cxx, "test.cpp", "-std=c++11", "-I#{include}", "-L#{Formula["armadillo"].opt_lib}",
"-larmadillo", "-o", "test"
end
Expand Down

0 comments on commit 49769b0

Please sign in to comment.