Skip to content

cpprestsdk needs boost #991

Open
Open
@madebr

Description

@madebr

Hello,

I'm using cmake to build my project that uses cpprestsdk.
My CMakeLists.txt uses find_package(cpprestsdk REQUIRED CONFIG) to get the cpprestsdk::cpprest cmake target.
Linking fails because of a missing symbol: libboost_system.so.
Adding Boost::system to the target_link_libraries solves the problem.

I believe this is because of this:
https://github.com/Microsoft/cpprestsdk/blob/744f33baec14abc07b0cf527f25014a6d0cba7e4/Release/cmake/cpprestsdk-config.in.cmake#L14-L20
The AND OFF must disappear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions