Skip to content

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

Open
@lordjaxom

Description

@lordjaxom

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 :-(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions