Skip to content

Commit

Permalink
watcher: add rpath
Browse files Browse the repository at this point in the history
Set CMAKE_INSTALL_RPATH to fix linking to the library.
  • Loading branch information
dunglas committed Dec 15, 2024
1 parent 3b98fa3 commit b5529b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Formula/w/watcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Watcher < Formula
depends_on "cmake" => :build

def install
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "-S", ".", "-B", "build", "-DCMAKE_INSTALL_RPATH=#{rpath}", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
Expand Down

0 comments on commit b5529b5

Please sign in to comment.