From 9b24f54f0d96eced42223a34b3741b4dafb77581 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 2 Oct 2025 17:42:25 +0500 Subject: [PATCH] cmake - override CGAL_Boost_USE_STATIC_LIBS The issue was with ci.yml - it was using system boost shared libraries (since Boost_USE_STATIC_LIBS by default is OFF), but CGALConfig was overriding leading to compilation issues. --- cmake/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index a1b95fe0cc..d584a9e3bb 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -254,6 +254,13 @@ endmacro() if(WITH_CGAL) if(NOT CGAL_INCLUDE_DIR) + # CGAL is not respecting default Boost_USE_STATIC_LIBS value + # and sometiems it's getting in the way. + if(NOT DEFINED Boost_USE_STATIC_LIBS) + set(CGAL_Boost_USE_STATIC_LIBS OFF) + else() + set(CGAL_Boost_USE_STATIC_LIBS "${Boost_USE_STATIC_LIBS}") + endif() find_package(CGAL REQUIRED) if(NOT CGAL_DIR) message(