drogon
drogon copied to clipboard
Can only build & run release variant on windows with vcpkg
Describe the bug
Only the Release build variant works when using vcpkg on Windows.
To Reproduce Steps to reproduce the behaviour:
- Follow the steps: https://github.com/drogonframework/drogon/wiki/ENG-02-Installation#Use-vcpkg
- Create a project with drogon_ctl
- Set build variant to
Releasefor successful build - Set build variant to
Debugfor successful build but crashes on start (I believe wrong libraries are linked) - Set build variant to to
RelWithDebInfofor 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