diff --git a/CMakeLists.txt b/CMakeLists.txt index ba2f46fd2..8817719a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -471,10 +471,8 @@ target_include_directories(boost_log target_link_libraries(boost_log PUBLIC - Boost::array Boost::assert Boost::config - Boost::container Boost::core Boost::date_time Boost::filesystem @@ -490,13 +488,11 @@ target_link_libraries(boost_log Boost::proto Boost::range Boost::smart_ptr - Boost::static_assert Boost::system Boost::throw_exception Boost::type_index Boost::type_traits Boost::utility - Boost::winapi PRIVATE Boost::align @@ -510,6 +506,13 @@ target_link_libraries(boost_log ${boost_log_regex_backend_private_libs} ) +if (WIN32 OR CYGWIN) + target_link_libraries(boost_log + PUBLIC + Boost::winapi + ) +endif() + if (NOT BOOST_LOG_NO_THREADS) target_link_libraries(boost_log PUBLIC