Skip to content

Commit

Permalink
Fix boost_log_setup link errors on libslic3r_cgal (#6690)
Browse files Browse the repository at this point in the history
Signed-off-by: Filipe Laíns <[email protected]>
Co-authored-by: SoftFever <[email protected]>
  • Loading branch information
FFY00 and SoftFever authored Dec 24, 2024
1 parent cf1039b commit aa1f1df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ endif()
# set(Boost_COMPILER "-mgw81")
# boost::process was introduced first in version 1.64.0,
# boost::beast::detail::base64 was introduced first in version 1.66.0
find_package(Boost 1.66 REQUIRED COMPONENTS system filesystem thread log locale regex chrono atomic date_time iostreams program_options)
find_package(Boost 1.66 REQUIRED COMPONENTS system filesystem thread log log_setup locale regex chrono atomic date_time iostreams program_options)

add_library(boost_libs INTERFACE)
add_library(boost_headeronly INTERFACE)
Expand Down
2 changes: 1 addition & 1 deletion src/libslic3r/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ if (_opts)
target_compile_options(libslic3r_cgal PRIVATE "${_opts_bad}")
endif()

target_link_libraries(libslic3r_cgal PRIVATE ${_cgal_tgt} libigl mcut)
target_link_libraries(libslic3r_cgal PRIVATE ${_cgal_tgt} libigl mcut boost_libs)

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

0 comments on commit aa1f1df

Please sign in to comment.