File 0001-fix-build-against-CGAL-4.14.patch of Package mshr

From bc6143175d378fa7655397b0d2a85f903f40008a Mon Sep 17 00:00:00 2001
From: Drew Parsons <dparsons@debian.org>
Date: Sat, 1 Feb 2020 18:03:00 +0800
Subject: [PATCH 1/2] fix build against CGAL 4.14

taken from debian patch build_CGAL_4.14.patch
https://bitbucket.org/fenics-project/mshr/issues/92/mshr-build-fails-against-external-cgal-414

Fixes Issue #92
---
 src/Polyhedron_utils.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/Polyhedron_utils.h b/src/Polyhedron_utils.h
index 12190e9..e7e834a 100644
--- a/src/Polyhedron_utils.h
+++ b/src/Polyhedron_utils.h
@@ -33,7 +33,12 @@
 #include <CGAL/Triangulation_vertex_base_with_info_2.h>
 #include <CGAL/Polyhedron_incremental_builder_3.h>
 #include <CGAL/convex_hull_3.h>
+#include <CGAL/version.h>
+#if CGAL_VERSION_NR >= 1041401000
+#include <CGAL/Polygon_mesh_processing/corefinement.h>
+#else
 #include <CGAL/corefinement_operations.h>
+#endif
 #include <CGAL/Aff_transformation_3.h>
 #include <CGAL/Delaunay_mesher_no_edge_refinement_2.h>
 #include <CGAL/Delaunay_mesh_face_base_2.h>
-- 
2.25.0

openSUSE Build Service is sponsored by