You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+66-2Lines changed: 66 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2894,18 +2894,20 @@ Given a type, `S`, that implements the `DelayedScheduler` and an instance, `s` o
2894
2894
2895
2895
The cppcoro library supports building under Windows with Visual Studio 2017 and Linux with Clang 5.0+.
2896
2896
2897
-
This library makes use of the [Cake build system](https://github.com/lewissbaker/cake) (no, not the [C# one](http://cakebuild.net/)).
2897
+
This library makes use of either the [Cake build system](https://github.com/lewissbaker/cake) (no, not the [C# one](http://cakebuild.net/)) or CMake.
2898
2898
2899
2899
The cake build system is checked out automatically as a git submodule so you don't need to download or install it separately.
2900
2900
2901
2901
## Building on Windows
2902
2902
2903
2903
This library currently requires Visual Studio 2017 or later and the Windows 10 SDK.
2904
2904
2905
-
Support for Clang ([#3](https://github.com/lewissbaker/cppcoro/issues/3)) and Linux ([#15](https://github.com/lewissbaker/cppcoro/issues/15)) is planned.
2905
+
Support for Linux ([#15](https://github.com/lewissbaker/cppcoro/issues/15)) is planned.
2906
2906
2907
2907
### Prerequisites
2908
2908
2909
+
The CMakeLists requires version 3.13 or later.
2910
+
2909
2911
The Cake build-system is implemented in Python and requires Python 2.7 to be installed.
2910
2912
2911
2913
Ensure Python 2.7 interpreter is in your PATH and available as 'python'.
Cppcoro follows the usual CMake workflow with no custom options added. Notable [standard CMake options](https://cmake.org/cmake/help/latest/manual/cmake-variables.7.html):
The CMake build scripts will also install a `cppcoroConfig.cmake` file for consumers to use.
2978
+
It will check at the consumer site that coroutines are indeed supported by the system and enable the appropriate compiler flag for Clang or MSVC, respectively.
2979
+
Assuming cppcoro has been installed to `$HOME/.local` like in the example above it can be consumed like this:
0 commit comments