From 6d13d02f2663cc2ffdcf5ef4208ce9b23edff54f Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Fri, 26 Jul 2024 17:52:27 -0400 Subject: [PATCH] inspectrum: use modern cmake syntax Signed-off-by: Rui Chen --- Formula/i/inspectrum.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Formula/i/inspectrum.rb b/Formula/i/inspectrum.rb index d957aba0f5e195..aa0d61f5cb25e7 100644 --- a/Formula/i/inspectrum.rb +++ b/Formula/i/inspectrum.rb @@ -18,6 +18,7 @@ class Inspectrum < Formula depends_on "cmake" => :build depends_on "pkg-config" => :build + depends_on "fftw" depends_on "liquid-dsp" depends_on "qt@5" @@ -25,15 +26,15 @@ class Inspectrum < Formula fails_with gcc: "5" 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 return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"] + # inspectrum is a GUI application assert_match "-r, --rate Set sample rate.", shell_output("#{bin}/inspectrum -h").strip end end