mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
cmake: remove -lc++experimental -ldl -lexecinfo
This commit is contained in:
parent
3e8f8fea64
commit
7ad03c22bd
@ -113,21 +113,9 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
target_link_libraries(ccls PRIVATE Threads::Threads)
|
target_link_libraries(ccls PRIVATE Threads::Threads)
|
||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} STREQUAL Darwin)
|
if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
|
||||||
target_link_libraries(ccls PRIVATE -lc++experimental)
|
|
||||||
|
|
||||||
elseif(${CMAKE_SYSTEM_NAME} STREQUAL Linux)
|
|
||||||
# loguru calls dladdr
|
|
||||||
target_link_libraries(ccls PRIVATE ${CMAKE_DL_LIBS})
|
|
||||||
|
|
||||||
elseif(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
|
|
||||||
# loguru::stacktrace_as_stdstring calls backtrace_symbols
|
|
||||||
# src/platform_posix.cc uses libthr
|
# src/platform_posix.cc uses libthr
|
||||||
find_package(Backtrace REQUIRED)
|
target_link_libraries(ccls PRIVATE thr)
|
||||||
target_link_libraries(ccls PRIVATE ${Backtrace_LIBRARIES} thr)
|
|
||||||
if(SYSTEM_CLANG)
|
|
||||||
target_link_libraries(ccls PRIVATE c++experimental)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
### Definitions
|
### Definitions
|
||||||
|
Loading…
Reference in New Issue
Block a user