diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2019-10-13 01:15:48 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2019-10-13 01:15:48 +0300 |
commit | 06e14c1b6a5835c0e08c00b4670d0c6c5343dc98 (patch) | |
tree | 93ec5a0803570962ca471b5a7b3e89737a1e59aa /CMakeLists.txt | |
parent | 7a854e59e7bb402399a590be35c2292b6f081268 (diff) |
Add -lc++experimental to Coroutines linkage, hopefully fix travis.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dc8bfef9..5926f56b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,18 +168,19 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux") else() set(USING_LIBCXX_ON_LINUX 1) # We had to use libc++ to get coroutines on Linux, so don't link the filesystem TS + # into the _dl edition, which is the coroutines-enabled edition target_link_libraries(${PROJECT_NAME}_hl INTERFACE ${libstdcxx_stdcxxfs} rt) target_link_libraries(${PROJECT_NAME}_sl PUBLIC ${libstdcxx_stdcxxfs} rt) foreach(special ${SPECIAL_BUILDS}) target_link_libraries(${PROJECT_NAME}_sl-${special} PUBLIC ${libstdcxx_stdcxxfs} rt) endforeach() - # Do make libc++ a requirement + # Do make libc++ a requirement for the _dl edition target_compile_definitions(${PROJECT_NAME}_dl PUBLIC _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM=1) target_compile_options(${PROJECT_NAME}_dl PUBLIC -stdlib=libc++) - target_link_libraries(${PROJECT_NAME}_dl PUBLIC -stdlib=libc++ -lc++abi) + target_link_libraries(${PROJECT_NAME}_dl PUBLIC -stdlib=libc++ -lc++abi -lc++experimental) foreach(special ${SPECIAL_BUILDS}) target_compile_options(${PROJECT_NAME}_dl-${special} PUBLIC -stdlib=libc++) - target_link_libraries(${PROJECT_NAME}_dl-${special} PUBLIC -stdlib=libc++ -lc++abi) + target_link_libraries(${PROJECT_NAME}_dl-${special} PUBLIC -stdlib=libc++ -lc++abi -lc++experimental) endforeach() endif() endif() |