drogonframework / drogonframework/drogon

Drogon defaults to C++17 in CMake – how to enable C++20 for coroutine support?

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

Description

Hi, I’m trying to use Drogon with C++20 and coroutines. However, when I run the `cmake ..` command, the output always shows that it’s using C++17. As a result, coroutine support is missing. I'm not sure why this happens, especially since I’m using g++ 14 and coroutines work fine in other projects.
Thanks in advance :)

![Image](https://github.com/user-attachments/assets/ecc1bcf6-f8d3-4218-bc4c-3f0838614c49)

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.