This repository has been archived on 2025-03-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
mqttd/cmake/GetCppTrace.cmake
2024-04-21 17:02:18 -03:00

15 lines
444 B
CMake

include(FetchContent)
set(CPPTRACE_UNWIND_WITH_UNWIND Off)
set(CPPTRACE_UNWIND_WITH_LIBUNWIND On)
set(CPPTRACE_GET_SYMBOLS_WITH_LIBDWARF Off)
set(CPPTRACE_GET_SYMBOLS_WITH_ADDR2LINE On)
set(CPPTRACE_ADDR2LINE_SEARCH_SYSTEM_PATH On)
FetchContent_Declare(
cpptrace
GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git
GIT_TAG v0.5.2 # <HASH or TAG>
GIT_PROGRESS TRUE
OVERRIDE_FIND_PACKAGE)
FetchContent_MakeAvailable(cpptrace)