mirror of https://github.com/microsoft/vcpkg.git
17 lines
463 B
Diff
17 lines
463 B
Diff
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()
|