Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions deps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ option(DEP_BUILD_FREETYPE "Compile freetype" ON)
option(DEP_BUILD_WXWIDGETS "Compile wxWidgets" ON)
option(DEP_BUILD_GMP "Compile GMP" ON)
option(DEP_BUILD_MPFR "Compile MPFR" ON)
option(DEP_BUILD_CGAL "Compile CGAL" ON)
option(DEP_BUILD_FFMPEG "Compile ffmpeg" ON)
option(DEP_BUILD_LIBHARU "Compile libharu" ON)

Expand Down Expand Up @@ -268,7 +269,11 @@ if (DEP_BUILD_MPFR)
include(MPFR/MPFR.cmake)
set(MPFR_PKG dep_MPFR)
endif ()
include(CGAL/CGAL.cmake)
set(CGAL_PKG "")
if (DEP_BUILD_CGAL)
include(CGAL/CGAL.cmake)
set(CGAL_PKG dep_CGAL)
endif()

include(NLopt/NLopt.cmake)

Expand Down Expand Up @@ -314,7 +319,7 @@ set(_dep_list
dep_OpenVDB
dep_OpenCSG
dep_OpenCV
dep_CGAL
${CGAL_PKG}
${OPENSSL_PKG}
${GLFW_PKG}
${PNG_PKG}
Expand Down
3 changes: 2 additions & 1 deletion src/libslic3r/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,8 @@ if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 14.1)
set_property(TARGET libslic3r_cgal PROPERTY CXX_EXTENSIONS OFF)
endif()

target_link_libraries(libslic3r_cgal PRIVATE ${_cgal_tgt} libigl mcut)
find_package(cereal REQUIRED)
target_link_libraries(libslic3r_cgal PRIVATE ${_cgal_tgt} libigl mcut cereal)

if (MSVC AND "${CMAKE_SIZEOF_VOID_P}" STREQUAL "4") # 32 bit MSVC workaround
target_compile_definitions(libslic3r_cgal PRIVATE CGAL_DO_NOT_USE_MPZF)
Expand Down
Loading