mni_autoreg: fix build with cmake4 (#454684)

This commit is contained in:
Yohann Boniface
2025-10-23 15:12:23 +00:00
committed by GitHub
+6
View File
@@ -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";