File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,6 @@ if(Coroutines_SUPPORTS_MS_FLAG)
1515elseif (Coroutines_ts_SUPPORTS_GNU_FLAG)
1616 check_include_file_cxx("coroutine" Coroutines_STANDARD_LIBRARY_SUPPORT "-fcoroutines-ts" )
1717 check_include_file_cxx("experimental/coroutine" Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT "-fcoroutines-ts" )
18- # workaround:
19- # clang not find stdlibc++ headers when on ubuntu 20.04
20- # So, we retry with libc++ enforcement
21- if (NOT Coroutines_STANDARD_LIBRARY_SUPPORT
22- AND NOT Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT
23- AND CMAKE_CXX_COMPILER_ID MATCHES Clang)
24- set (CMAKE_REQUIRED_FLAGS "-stdlib=libc++" )
25- check_include_file_cxx("coroutine" Coroutines_STANDARD_LIBRARY_SUPPORT_LIBCPP "-fcoroutines-ts" )
26- check_include_file_cxx("experimental/coroutine" Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT_LIBCPP "-fcoroutines-ts" )
27- if (Coroutines_STANDARD_LIBRARY_SUPPORT_LIBCPP OR Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT_LIBCPP)
28- list (APPEND Coroutines_EXTRA_FLAGS "-stdlib=libc++" )
29- set (Coroutines_STANDARD_LIBRARY_SUPPORT ${Coroutines_STANDARD_LIBRARY_SUPPORT_LIBCPP} )
30- set (Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT ${Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT_LIBCPP} )
31- endif ()
32- endif ()
3318elseif (Coroutines_SUPPORTS_GNU_FLAG)
3419 check_include_file_cxx("coroutine" Coroutines_STANDARD_LIBRARY_SUPPORT "-fcoroutines" )
3520 check_include_file_cxx("experimental/coroutine" Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT "-fcoroutines" )
You can’t perform that action at this time.
0 commit comments