mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Find libunwind if requested so we can link to it.
This commit is contained in:
parent
075395620a
commit
d9a182b450
@ -47,6 +47,13 @@ if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
|||||||
target_link_libraries(TracyClient PUBLIC ${EXECINFO_LIBRARY})
|
target_link_libraries(TracyClient PUBLIC ${EXECINFO_LIBRARY})
|
||||||
endif()
|
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)
|
add_library(Tracy::TracyClient ALIAS TracyClient)
|
||||||
|
|
||||||
macro(set_option option help value)
|
macro(set_option option help value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user