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