diff options
Diffstat (limited to 'vcpkg/ports/libcoro/add-experimental-library.patch')
| -rw-r--r-- | vcpkg/ports/libcoro/add-experimental-library.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/libcoro/add-experimental-library.patch b/vcpkg/ports/libcoro/add-experimental-library.patch new file mode 100644 index 0000000..c2393f6 --- /dev/null +++ b/vcpkg/ports/libcoro/add-experimental-library.patch @@ -0,0 +1,16 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a27a052..1a1e113 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -14,6 +14,11 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + link_libraries(-lc++) + endif() + ++# for C++20 std library (ex. std::stop_token) ++if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR ${CMAKE_SYSTEM_NAME} MATCHES "Android") ++ add_compile_options(-fexperimental-library) ++endif() ++ + if(UNIX AND NOT APPLE) + set(LINUX TRUE) + endif() |