From cb59b22297a5d7fd00bbc063567e4723b8766831 Mon Sep 17 00:00:00 2001 From: Jonne Mickelin Date: Wed, 20 Nov 2024 16:14:07 +0100 Subject: [PATCH] Link boost_headeronly in slic3r and tests This solves the linker error about missing `boost::log` symbols. Fixes #13608. --- src/slic3r/CMakeLists.txt | 1 + tests/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/CMakeLists.txt b/src/slic3r/CMakeLists.txt index 28f54b7064c..567fcafc857 100644 --- a/src/slic3r/CMakeLists.txt +++ b/src/slic3r/CMakeLists.txt @@ -441,6 +441,7 @@ target_link_libraries( fastfloat OpenSSL::SSL OpenSSL::Crypto + boost_headeronly ) if (MSVC) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 82027558ccd..220012f61c6 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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++)