Skip to content

Commit

Permalink
Added linking log_setup with ws2_32 on MinGW-w64.
Browse files Browse the repository at this point in the history
The dependency is introduced by Boost.ASIO, when it is enabled.

Closes #241.
  • Loading branch information
Lastique committed Dec 15, 2024
1 parent aa0acf3 commit 3dacd00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ if (WIN32 OR CYGWIN)
mswsock
advapi32
)
list(APPEND boost_log_setup_private_libs
ws2_32
)
endif()

if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
Expand Down Expand Up @@ -655,6 +658,7 @@ if (NOT BOOST_LOG_WITHOUT_SETTINGS_PARSERS)

target_link_libraries(boost_log_setup
PRIVATE
${boost_log_setup_private_libs}
${boost_log_common_private_linkflags}
)
else()
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
[heading 2.31, Boost 1.88]

* Disabled usage of `std::codecvt<char16_t>` and `std::codecvt<char32_t>` locale facets in C++20 and later modes as they were deprecated in C++20. This means character code conversions to/from `char16_t` and `char32_t` is no longer available in C++20 and later.
* Fixed building issues when using CMake and MinGW-w64. ([pull_request 241])

[heading 2.30, Boost 1.87]

Expand Down

0 comments on commit 3dacd00

Please sign in to comment.