otb: fix minimum cmake version error
* Update the cmake version to 3.10 for ITK third-party related module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user