Skip to content

Commit e3e3bfb

Browse files
BrewTestBotchenrui333
authored andcommitted
dcm2niix 1.0.20250505
dcm2niix: add cmake 4.0 build patch Signed-off-by: Rui Chen <[email protected]>
1 parent 75a08b7 commit e3e3bfb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Formula/d/dcm2niix.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Dcm2niix < Formula
22
desc "DICOM to NIfTI converter"
33
homepage "https://www.nitrc.org/plugins/mwiki/index.php/dcm2nii:MainPage"
4-
url "https://github.com/rordenlab/dcm2niix/archive/refs/tags/v1.0.20241211.tar.gz"
5-
sha256 "3c7643ac6a1cd9517209eb06f430ad5e2b39583e6a35364f015e5ec3380f9ee2"
4+
url "https://github.com/rordenlab/dcm2niix/archive/refs/tags/v1.0.20250505.tar.gz"
5+
sha256 "3750e719596d310798722468a763d90e6a5d9edb720d321ca233926a0a508e32"
66
license "BSD-3-Clause"
77
version_scheme 1
88
head "https://github.com/rordenlab/dcm2niix.git", branch: "master"
@@ -25,6 +25,9 @@ class Dcm2niix < Formula
2525
depends_on "cmake" => :build
2626

2727
def install
28+
# Workaround to build with CMake 4
29+
ENV["CMAKE_POLICY_VERSION_MINIMUM"] = "3.5"
30+
2831
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
2932
system "cmake", "--build", "build"
3033
system "cmake", "--install", "build"

0 commit comments

Comments
 (0)