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(