Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Documentation Bug in CMake File #1770

@DerTobiasRichter

Description

@DerTobiasRichter

On Main Page: https://github.com/microsoft/cpprestsdk (09/26/2023)

To use from CMake:
`
cmake_minimum_required(VERSION 3.9)
project(main)

find_package(cpprestsdk REQUIRED)

add_executable(main main.cpp)
target_link_libraries(main PRIVATE cpprestsdk::cpprest)
`

Is missing the linker Option "-lcrypto", thus it should be:

`
cmake_minimum_required(VERSION 3.9)
project(main)

find_package(cpprestsdk REQUIRED)
add_link_options(-lcrypto)

add_executable(main main.cpp)
target_link_libraries(main PRIVATE cpprestsdk::cpprest)
`

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions