Skip to content

Commit

Permalink
Link boost_headeronly in slic3r and tests
Browse files Browse the repository at this point in the history
This solves the linker error about missing `boost::log` symbols.

Fixes prusa3d#13608.
  • Loading branch information
jmickelin committed Nov 20, 2024
1 parent 7d0688d commit cb59b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/slic3r/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ target_link_libraries(
fastfloat
OpenSSL::SSL
OpenSSL::Crypto
boost_headeronly
)

if (MSVC)
Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set(CATCH_EXTRA_ARGS "" CACHE STRING "Extra arguments for catch2 test suites.")
add_library(test_common INTERFACE)
target_include_directories(test_common INTERFACE ${CMAKE_CURRENT_LIST_DIR})
target_compile_definitions(test_common INTERFACE TEST_DATA_DIR=R"\(${TEST_DATA_DIR}\)" CATCH_CONFIG_FAST_COMPILE)
target_link_libraries(test_common INTERFACE Catch2::Catch2)
target_link_libraries(test_common INTERFACE Catch2::Catch2 boost_headeronly)

if (APPLE)
target_link_libraries(test_common INTERFACE "-liconv -framework IOKit" "-framework CoreFoundation" -lc++)
Expand Down

0 comments on commit cb59b22

Please sign in to comment.