drogonframework / drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows
MIT License
11.62k stars 1.12k forks source link

vcpkg installed yaml-cpp did not export YAML_CPP_LIBRARIES #1697

Closed haydenzhourepo closed 1 year ago

haydenzhourepo commented 1 year ago

Notice If you need support or clarification regarding the usage of Drogon in your project, visit the official Drogon support channel at gitter

Please create a new issue only if you think you have found a bug or if have a feature request/enhancement.

Describe the bug in yaml-cpp version 0.7.0 we should link yaml-cpp by this target_link_libraries(${PROJECT_NAME} PUBLIC yaml-cpp)

To Reproduce Steps to reproduce the behavior:

  1. install yaml-cpp 0.7.0 using vcpkg
  2. install drogon using vcpkg
  3. build and run drogon project
  4. throw error can not find yaml library

Expected behavior link yaml-cpp library successfully

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

haydenzhourepo commented 1 year ago

https://github.com/drogonframework/drogon/pull/1698