Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists.txt for asio should specify dependency to Threads #1266

Open
lordjaxom opened this issue Mar 23, 2023 · 1 comment
Open

CMakeLists.txt for asio should specify dependency to Threads #1266

lordjaxom opened this issue Mar 23, 2023 · 1 comment

Comments

@lordjaxom
Copy link

lordjaxom commented Mar 23, 2023

When importing Boost::asio from an install tree with find_package(Boost CONFIG COMPONENTS asio) and linking with target_link_libraries(myexe Boost::asio), the pthread library should be imported automatically.

See attached (proposed) patch.
boost-1.81.0-z1-asio-threads.patch

Sorry if this is the wrong place for the issue (since the repo doesn't contain CMakeLists.txt), but I can't file an issue in boostorg/asio :-(

@lordjaxom
Copy link
Author

Since CMake-support is not part of standalone asio, and boostorg/asio doesn't permit issues but pull-requests, but doesn't seem to be frequented much, I've added a pull-request there and hereby link it here :-)
boostorg/asio#413

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

No branches or pull requests

1 participant