From 49769b01e335811ac544dca0d7b16057c3b73b9a Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Fri, 26 Jul 2024 17:26:50 -0400 Subject: [PATCH] ensmallen: use modern cmake syntax Signed-off-by: Rui Chen --- Formula/e/ensmallen.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Formula/e/ensmallen.rb b/Formula/e/ensmallen.rb index 3ab03e1e39035..8223b50f06d51 100644 --- a/Formula/e/ensmallen.rb +++ b/Formula/e/ensmallen.rb @@ -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 @@ -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