mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Update CGAL.cmake (#10850)
* Update CGAL.cmake * Delete deps/CGAL/0001-clang19.patch * Update CGAL.cmake * Update CGAL.cmake --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
59
deps/CGAL/0001-clang19.patch
vendored
59
deps/CGAL/0001-clang19.patch
vendored
@@ -1,59 +0,0 @@
|
|||||||
--- a/BGL/include/CGAL/boost/graph/iterator.h 2022-10-07 19:04:41 UTC
|
|
||||||
+++ b/BGL/include/CGAL/boost/graph/iterator.h
|
|
||||||
@@ -213,18 +213,7 @@ class Halfedge_around_source_iterator { (public)
|
|
||||||
{}
|
|
||||||
|
|
||||||
#ifndef DOXYGEN_RUNNING
|
|
||||||
- // design patter: "safe bool"
|
|
||||||
- // will be replaced by explicit operator bool with C++11
|
|
||||||
- typedef void (Halfedge_around_source_iterator::*bool_type)() const;
|
|
||||||
|
|
||||||
- void this_type_does_not_support_comparisons() const {}
|
|
||||||
-
|
|
||||||
- operator bool_type() const
|
|
||||||
- {
|
|
||||||
- return (! (this->base() == nullptr)) ?
|
|
||||||
- &Halfedge_around_source_iterator::this_type_does_not_support_comparisons : 0;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
bool operator==( const Self& i) const {
|
|
||||||
CGAL_assertion( anchor == anchor);
|
|
||||||
return ( g == i.g) && ( pos == i.pos) && ( winding == i.winding);
|
|
||||||
@@ -313,18 +302,7 @@ class Halfedge_around_target_iterator { (public)
|
|
||||||
{}
|
|
||||||
|
|
||||||
#ifndef DOXYGEN_RUNNING
|
|
||||||
- // design patter: "safe bool"
|
|
||||||
- // will be replaced by explicit operator bool with C++11
|
|
||||||
- typedef void (Halfedge_around_target_iterator::*bool_type)() const;
|
|
||||||
|
|
||||||
- void this_type_does_not_support_comparisons() const {}
|
|
||||||
-
|
|
||||||
- operator bool_type() const
|
|
||||||
- {
|
|
||||||
- return (! (this->base() == nullptr)) ?
|
|
||||||
- &Halfedge_around_target_iterator::this_type_does_not_support_comparisons : 0;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
bool operator==( const Self& i) const {
|
|
||||||
CGAL_assertion( anchor == anchor);
|
|
||||||
return ( g == i.g) && ( pos == i.pos) && ( winding == i.winding);
|
|
||||||
@@ -411,18 +389,6 @@ class Halfedge_around_face_iterator { (public)
|
|
||||||
const value_type& operator * ( ) const { return pos; }
|
|
||||||
pointer operator -> ( ) { return &pos; }
|
|
||||||
const value_type* operator -> ( ) const { return &pos; }
|
|
||||||
-
|
|
||||||
- // design patter: "safe bool"
|
|
||||||
- // will be replaced by explicit operator bool with C++11
|
|
||||||
- typedef void (Halfedge_around_face_iterator::*bool_type)() const;
|
|
||||||
-
|
|
||||||
- void this_type_does_not_support_comparisons() const {}
|
|
||||||
-
|
|
||||||
- operator bool_type() const
|
|
||||||
- {
|
|
||||||
- return (! (this->base() == nullptr)) ?
|
|
||||||
- &Halfedge_around_face_iterator::this_type_does_not_support_comparisons : 0;
|
|
||||||
- }
|
|
||||||
|
|
||||||
bool operator==( const Self& i) const {
|
|
||||||
CGAL_assertion( anchor == anchor);
|
|
||||||
7
deps/CGAL/CGAL.cmake
vendored
7
deps/CGAL/CGAL.cmake
vendored
@@ -5,11 +5,10 @@ endif ()
|
|||||||
orcaslicer_add_cmake_project(
|
orcaslicer_add_cmake_project(
|
||||||
CGAL
|
CGAL
|
||||||
# GIT_REPOSITORY https://github.com/CGAL/cgal.git
|
# GIT_REPOSITORY https://github.com/CGAL/cgal.git
|
||||||
# GIT_TAG bec70a6d52d8aacb0b3d82a7b4edc3caa899184b # releases/CGAL-5.0
|
# GIT_TAG 3654f780ae0c64675cabaef0e5ddaf904c48b4b7 # releases/CGAL-5.6.3
|
||||||
# For whatever reason, this keeps downloading forever (repeats downloads if finished)
|
# For whatever reason, this keeps downloading forever (repeats downloads if finished)
|
||||||
URL https://github.com/CGAL/cgal/archive/refs/tags/v5.4.zip
|
URL https://github.com/CGAL/cgal/releases/download/v5.6.3/CGAL-5.6.3.zip
|
||||||
URL_HASH SHA256=d7605e0a5a5ca17da7547592f6f6e4a59430a0bc861948974254d0de43eab4c0
|
URL_HASH SHA256=5d577acb4a9918ccb960491482da7a3838f8d363aff47e14d703f19fd84733d4
|
||||||
PATCH_COMMAND git apply ${CGAL_DIRECTORY_FLAG} --verbose --ignore-space-change --whitespace=fix ${CMAKE_CURRENT_LIST_DIR}/0001-clang19.patch
|
|
||||||
DEPENDS dep_Boost dep_GMP dep_MPFR
|
DEPENDS dep_Boost dep_GMP dep_MPFR
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user