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
As titled. But it works like MSVC, leaving blank is OK. Maybe something like below:
macro(qcoro_enable_coroutines)
if (CMAKE_CXX_COMPILER_ID STREQUAL"GNU")
set(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -fcoroutines")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL"AppleClang")
set(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -fcoroutines-ts")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL"Clang")
if (MSVC)
# Clang-cl works like MSVC that auto-enables coroutine support when C++20 is enabled else()
set(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -fcoroutines-ts")
endif()
elseif (CMAKE_CXX_COMPILER_ID STREQUAL"MSVC")
# MSVC auto-enables coroutine support when C++20 is enabled else()
message(FATAL_ERROR "Compiler ${CMAKE_CXX_COMPILER_ID} is not currently supported.")
endif()
endmacro()
The text was updated successfully, but these errors were encountered:
As titled. But it works like MSVC, leaving blank is OK. Maybe something like below:
The text was updated successfully, but these errors were encountered: