From d61916739a88b408616860f2deb7313a8d9e087e Mon Sep 17 00:00:00 2001 From: Liangliang Nan Date: Tue, 19 Nov 2024 10:46:25 +0100 Subject: [PATCH] tested with CGAL-6.0 --- code/method/CMakeLists.txt | 1 - code/method/alpha_shape_CGAL4.11_and_later.h | 4 ++-- code/renderer/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/method/CMakeLists.txt b/code/method/CMakeLists.txt index dc497518..74c511aa 100644 --- a/code/method/CMakeLists.txt +++ b/code/method/CMakeLists.txt @@ -32,7 +32,6 @@ set_target_properties(${PROJECT_NAME} PROPERTIES find_package(CGAL REQUIRED) if (CGAL_FOUND) message(STATUS "Found CGAL ${CGAL_VERSION}") - include(${CGAL_USE_FILE}) target_link_libraries(${PROJECT_NAME} ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES}) else () message(FATAL_ERROR "CGAL is required.") diff --git a/code/method/alpha_shape_CGAL4.11_and_later.h b/code/method/alpha_shape_CGAL4.11_and_later.h index cb9f5726..550ae656 100644 --- a/code/method/alpha_shape_CGAL4.11_and_later.h +++ b/code/method/alpha_shape_CGAL4.11_and_later.h @@ -80,8 +80,8 @@ class Alpha_shape_2 : public Dt typedef Type_of_alpha FT; //check simplices are correctly instantiated - CGAL_static_assertion( (boost::is_same::value) ); - CGAL_static_assertion( (boost::is_same::value) ); + static_assert( (boost::is_same::value) ); + static_assert( (boost::is_same::value) ); typedef typename Dt::Point Point; diff --git a/code/renderer/CMakeLists.txt b/code/renderer/CMakeLists.txt index 7b62f206..1a89a83e 100644 --- a/code/renderer/CMakeLists.txt +++ b/code/renderer/CMakeLists.txt @@ -25,6 +25,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES target_include_directories(${PROJECT_NAME} PRIVATE ${POLYFIT_glew_DIR}/include) +set(OpenGL_GL_PREFERENCE GLVND) find_package(OpenGL REQUIRED) target_link_libraries(${PROJECT_NAME} PRIVATE ${OPENGL_LIBRARIES} basic math model 3rd_glew)