Unverified Commit ae8378b5 authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

tetgen: fix build with cmake4 (#453938)

parents bf4194f2 90b876fd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -27,6 +27,11 @@ stdenv.mkDerivation rec {
    runHook postInstall
  '';

  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 2.6)" "cmake_minimum_required(VERSION 3.10)"
  '';

  meta = {
    description = "Quality Tetrahedral Mesh Generator and 3D Delaunay Triangulator";
    mainProgram = "tetgen";