forked from lewissbaker/cppcoro
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: leave C++ standard selection to the user
FindCoroutines.cmake tried to figure out the correct flags to use coroutines. However, with MSVC 16.8 this is impossible. MSVC 16.8 supports both the coroutines-ts with its experimental headers and experimental namespace as well as the C++20 coroutines. The user can select the coroutines-ts with the /await flag and the C++20 coroutines with /std:c++latest. Only the user can know what she wants. This patch changes the logic in FindCoroutines.cmake to basically: If it does not compile without (/await|-fcoroutines-ts), try adding (/await|-fcoroutines-ts) to the compiler flags.
- Loading branch information
1 parent
cdf7622
commit f6fb710
Showing
3 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters