aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libcoro/add-experimental-library.patch
blob: c2393f6a3b7b3822befe5513d5d6984572992785 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()