0
0
mirror of https://github.com/wolfpld/tracy.git synced 2026-01-18 17:11:26 +01:00

Merge pull request #841 from aluaces/pr-find-libunwind

Find libunwind if requested so we can link to it.
This commit is contained in:
Bartosz Taudul
2024-07-23 13:13:18 +02:00
committed by GitHub

View File

@@ -47,6 +47,13 @@ if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
target_link_libraries(TracyClient PUBLIC ${EXECINFO_LIBRARY})
endif()
if(TRACY_LIBUNWIND_BACKTRACE)
include(FindPkgConfig)
pkg_check_modules(unwind REQUIRED libunwind)
target_include_directories(TracyClient INTERFACE ${unwind_INCLUDE_DIRS})
target_link_libraries(TracyClient INTERFACE ${unwind_LINK_LIBRARIES})
endif()
add_library(Tracy::TracyClient ALIAS TracyClient)
macro(set_option option help value)