Unverified Commit 5f873d33 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

mni_autoreg: fix build with cmake4 (#454684)

parents 42482429 3e14dbd9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -48,6 +48,12 @@ stdenv.mkDerivation {
    done
  '';

  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail "CMAKE_MINIMUM_REQUIRED(VERSION 3.1)" "cmake_minimum_required(VERSION 3.10)" \
      --replace-fail "CMAKE_POLICY(SET CMP0026 OLD)" "CMAKE_POLICY(SET CMP0026 NEW)"
  '';

  meta = {
    homepage = "https://github.com/BIC-MNI/mni_autoreg";
    description = "Tools for automated registration using the MINC image format";