Unverified Commit 44390642 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

shark: fix build with cmake-4 (#453157)

parents 63bdb5d9 2c3348d7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -26,6 +26,9 @@ stdenv.mkDerivation (finalAttrs: {
  # Remove explicitly setting C++11, because boost::math headers need C++14 since Boost187.
  postPatch = ''
    sed -i '/CXX_STANDARD/d' src/CMakeLists.txt

    substituteInPlace CMakeLists.txt \
      --replace-fail 'cmake_minimum_required( VERSION 3.1 FATAL_ERROR)' 'cmake_minimum_required(VERSION 3.10)'
  '';

  # https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/blob/develop/SuperBuild/CMake/External_shark.cmake?ref_type=heads