Skip to content

Conversation

lordjaxom
Copy link

This PR adds the Threads::Threads library (which resolves to pthread on Linux and is empty on Windows) when targeting the interface library Boost::asio. Without it, using Boost::asio on Linux leads to undefined symbols, e.g.

set(Boost_ROOT <path_to_boost_install_dir>)
find_package(Boost COMPONENTS asio)
target_link_library(myexe Boost::asio)

@lordjaxom
Copy link
Author

Submitting this here since CMake support is not a part of standalone asio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant