From d3536831c304355ed547dfaa4c4df2880707a247 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 14 Jul 2018 09:19:27 -0700 Subject: [PATCH] Fix FreeBSD build with -DUSE_SHARED_LLVM=off --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fee47d23..8a901f76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,6 +114,8 @@ find_package(Threads REQUIRED) target_link_libraries(ccls PRIVATE Threads::Threads) if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD) + find_package(Backtrace REQUIRED) + target_link_libraries(ccls PRIVATE ${Backtrace_LIBRARIES}) # src/platform_posix.cc uses libthr target_link_libraries(ccls PRIVATE thr) endif()