drogonframework / drogonframework/drogon

Can only build & run release variant on windows with vcpkg

Open
#1,181 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
14.3k
Forks
1.4k
Avg merge
1d 13h
Merged PRs (30d)
14

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.