Skip to content

Commit

Permalink
Updated dependencies in CMakeLists.txt.
Browse files Browse the repository at this point in the history
Removed unused dependences, made Boost.WinAPI Windows-specific.
  • Loading branch information
Lastique committed Aug 18, 2024
1 parent 26c93dc commit 028247d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 028247d

Please sign in to comment.