diff --git a/CMakeLists.txt b/CMakeLists.txt index fdb6591c165..a947e814b5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -408,6 +408,10 @@ if(SLIC3R_STATIC) # Use boost libraries linked statically to the C++ runtime. # set(Boost_USE_STATIC_RUNTIME ON) endif() + +if(NOT Boost_USE_STATIC_LIBS) + add_definitions(-DBOOST_LOG_DYN_LINK) +endif() #set(Boost_DEBUG ON) # set(Boost_COMPILER "-mgw81") # boost::process was introduced first in version 1.64.0, @@ -422,7 +426,7 @@ if (APPLE) target_compile_definitions(boost_headeronly INTERFACE BOOST_ASIO_DISABLE_KQUEUE) endif() -if(NOT SLIC3R_STATIC) +if(NOT Boost_USE_STATIC_LIBS) target_compile_definitions(boost_headeronly INTERFACE BOOST_LOG_DYN_LINK) endif() diff --git a/src/libslic3r/CMakeLists.txt b/src/libslic3r/CMakeLists.txt index 2c362dba23e..a89014bfa23 100644 --- a/src/libslic3r/CMakeLists.txt +++ b/src/libslic3r/CMakeLists.txt @@ -598,7 +598,10 @@ if (APPLE) endif () if (TARGET OpenVDB::openvdb) - target_link_libraries(libslic3r OpenVDB::openvdb) + target_link_libraries(libslic3r PRIVATE OpenVDB::openvdb) + if (TARGET Blosc::blosc) + target_link_libraries(libslic3r PUBLIC Blosc::blosc) + endif() endif() if(WIN32)