Skip to content

Commit 5166479

Browse files
authored
Merge pull request #246567 from Homebrew/amqp-cpp-cmake
amqp-cpp: use patch for cmake fix
2 parents 8a19267 + 27ab1cf commit 5166479

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Formula/a/amqp-cpp.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,19 @@ class AmqpCpp < Formula
2525
depends_on "cmake" => :build
2626
depends_on "openssl@3"
2727

28+
# Backport fix for CMake 4
29+
# PR ref: https://github.com/CopernicaMarketingSoftware/AMQP-CPP/pull/541
30+
patch do
31+
url "https://github.com/CopernicaMarketingSoftware/AMQP-CPP/commit/3a80a681ec258807c24f54214a3b6c7fc0dc28c0.patch?full_index=1"
32+
sha256 "70337b274251cfe890ecf560109d7389e43ae44fb93b43f1279871aa9aa7f139"
33+
end
34+
2835
def install
2936
args = %w[
3037
-DAMQP-CPP_BUILD_SHARED=ON
3138
-DAMQP-CPP_LINUX_TCP=ON
3239
-DCMAKE_MACOSX_RPATH=1
3340
]
34-
# Workaround to build with CMake 4
35-
args << "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
3641
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
3742
system "cmake", "--build", "build"
3843
system "cmake", "--install", "build"

0 commit comments

Comments
 (0)