1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: Use system libbacktrace
Forwarded: not-needed
Author: David Heidelberg <david@ixit.cz>
--- a/lib/os/CMakeLists.txt
+++ b/lib/os/CMakeLists.txt
@@ -20,7 +20,7 @@ target_link_libraries (os PUBLIC Threads::Threads)
if (CMAKE_EXECUTABLE_FORMAT STREQUAL "ELF")
target_compile_definitions (os PRIVATE HAVE_BACKTRACE=1)
- target_link_libraries (os PUBLIC backtrace)
+ target_link_libraries (os PUBLIC backtrace ${CMAKE_DL_LIBS})
endif ()
if (WIN32)
--- a/thirdparty/CMakeLists.txt
+++ b/thirdparty/CMakeLists.txt
@@ -52,7 +52,6 @@ if (NOT BROTLIDEC_FOUND OR NOT BROTLIENC_FOUND)
endif ()
if (CMAKE_EXECUTABLE_FORMAT STREQUAL "ELF")
- include_with_scope (libbacktrace.cmake)
endif ()
# We use non-standard C++ flags, so we can't just use GTest's CMakeLists.txt
|