Skip to content

Commit 29cf935

Browse files
committed
lolcode: use patch for cmake fix
1 parent b527a79 commit 29cf935

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Formula/l/lolcode.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ class Lolcode < Formula
3434

3535
conflicts_with "lci", because: "both install `lci` binaries"
3636

37+
# Backport fix for CMake 4 compatibility
38+
patch do
39+
url "https://github.com/justinmeza/lci/commit/42ac17a22ddce737664b39a50442e6623a7e51a2.patch?full_index=1"
40+
sha256 "03b8a8bd907501818d0c7b71444727e6a49143aabd280966bfb5eab7d9fe3fc6"
41+
end
42+
3743
def install
38-
# Workaround for CMake 4 compatibility
39-
args = %w[-DCMAKE_POLICY_VERSION_MINIMUM=3.5]
40-
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
44+
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
4145
system "cmake", "--build", "build"
4246

4347
# Don't use `make install` for this one file

0 commit comments

Comments
 (0)