microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.89k stars 1.63k forks source link

Documentation Bug in CMake File #1770

Open DerTobiasRichter opened 9 months ago

DerTobiasRichter commented 9 months ago

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