otb: fix minimum cmake version error

* Update the cmake version to 3.10 for ITK third-party related module
This commit is contained in:
daspk04
2025-10-19 16:56:27 +07:00
parent b7ecb71b42
commit a30bedbc21
+5
View File
@@ -95,6 +95,11 @@ let
})
];
postPatch = ''
substituteInPlace Modules/ThirdParty/KWSys/src/KWSys/CMakeLists.txt \
--replace-fail 'cmake_minimum_required(VERSION 3.1 FATAL_ERROR)' 'cmake_minimum_required(VERSION 3.10)'
'';
# fix the CMake config files for ITK which contains double slashes
postInstall = (oldArgs.postInstall or "") + ''
sed -i 's|''${ITK_INSTALL_PREFIX}//nix/store|/nix/store|g' $out/lib/cmake/ITK-${itkMajorMinorVersion}/ITKConfig.cmake