Origin, upstream: https://github.com/meshpro/pygalmesh/pull/214
Bug-Debian: https://bugs.debian.org/
1074381
Last-Update: 2024-11-16
Origin, upstream: https://github.com/meshpro/pygalmesh/pull/214
Bug-Debian: https://bugs.debian.org/
1074381
Last-Update: 2024-11-16
Gbp-Pq: Name build-with-CGAL-6.0.patch
include_directories(${EIGEN3_INCLUDE_DIR})
FIND_PACKAGE(CGAL REQUIRED)
-include(${CGAL_USE_FILE})
FILE(GLOB pygalmesh_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
# FILE(GLOB pygalmesh_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp")
pybind11_add_module(pygalmesh ${pygalmesh_SRCS})
# ADD_LIBRARY(pygalmesh ${pygalmesh_SRCS})
-target_link_libraries(pygalmesh PRIVATE ${CGAL_LIBRARIES})
+target_link_libraries(pygalmesh PRIVATE CGAL::CGAL)
# https://github.com/CGAL/cgal/issues/6002
# find_program(iwyu_path NAMES include-what-you-use iwyu REQUIRED)
#include <CGAL/Mesh_complex_3_in_triangulation_3.h>
#include <CGAL/Mesh_criteria_3.h>
-#include <CGAL/Implicit_mesh_domain_3.h>
+#include <CGAL/Labeled_mesh_domain_3.h>
#include <CGAL/Mesh_domain_with_polyline_features_3.h>
#include <CGAL/make_mesh_3.h>
#include <CGAL/Mesh_complex_3_in_triangulation_3.h>
#include <CGAL/Mesh_criteria_3.h>
-#include <CGAL/Implicit_mesh_domain_3.h>
+#include <CGAL/Labeled_mesh_domain_3.h>
#include <CGAL/Mesh_domain_with_polyline_features_3.h>
#include <CGAL/make_mesh_3.h>
#include <CGAL/version_macros.h>
-#if CGAL_VERSION_MAJOR >= 5 && CGAL_VERSION_MINOR < 3
+#if (CGAL_VERSION_MAJOR == 5 && CGAL_VERSION_MINOR < 3)
#include <CGAL/IO/OFF_reader.h>
#endif
if(
!input ||
-#if CGAL_VERSION_MAJOR >= 5 && CGAL_VERSION_MINOR >= 3
+#if (CGAL_VERSION_MAJOR >= 5 && CGAL_VERSION_MINOR >= 3) || (CGAL_VERSION_MAJOR >= 6)
!CGAL::IO::read_OFF(input, points, polygons) ||
#else
!CGAL::read_OFF(input, points, polygons) ||