X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=CMakeLists.txt;h=4566db59ad487b920dc62d92b1cd9313b0c17681;hb=bd9811ff579a0482bfd7d40b1149bcef40ad3d71;hp=b2de6bbc0844c16c6786c84bcc04781d24a8d406;hpb=cad5d619dcb5e1c6349bfff69176660668402622;p=apitrace diff --git a/CMakeLists.txt b/CMakeLists.txt index b2de6bb..4566db5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -268,7 +268,7 @@ endif () if (CMAKE_EXECUTABLE_FORMAT STREQUAL "ELF") add_subdirectory (thirdparty/libbacktrace) include_directories (${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libbacktrace) - set (LIBBACKTRACE_LIBRARIES backtrace) + set (LIBBACKTRACE_LIBRARIES dl backtrace) endif () # Always use bundled QJSon. @@ -339,6 +339,9 @@ set_target_properties (common PROPERTIES COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}" ) +target_link_libraries (common + ${LIBBACKTRACE_LIBRARIES} +) if (ANDROID) target_link_libraries (common log