drogon icon indicating copy to clipboard operation
drogon copied to clipboard

Can only build & run release variant on windows with vcpkg

Open alexgeek opened this issue 4 years ago • 0 comments

Describe the bug Only the Release build variant works when using vcpkg on Windows.

To Reproduce Steps to reproduce the behaviour:

  1. Follow the steps: https://github.com/drogonframework/drogon/wiki/ENG-02-Installation#Use-vcpkg
  2. Create a project with drogon_ctl
  3. Set build variant to Release for successful build
  4. Set build variant to Debug for successful build but crashes on start (I believe wrong libraries are linked)
  5. Set build variant to to RelWithDebInfo for a failed build (mix matched debug and release libraries cause errors)

Expected behaviour I expect each build variant to work when using vcpkg. I'm currently using an in repo build of drogon to get around this.

Desktop (please complete the following information):

  • OS: Windows
  • Version 20H2

Additional context

  • cmake version 3.23.0-rc1
  • Visual Studio Community 2022 - amd64 kit

alexgeek avatar Feb 20 '22 23:02 alexgeek