Skip to content

Commit

Permalink
Link executables with backtrace
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Oct 22, 2024
1 parent 7e7f91b commit 1dae662
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nano/nano_node/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ add_executable(nano_node daemon.cpp daemon.hpp entry.cpp)

target_link_libraries(nano_node node Boost::process ${PLATFORM_LIBS})

if(NANO_STACKTRACE_BACKTRACE)
target_link_libraries(nano_node backtrace)
endif()

include_directories(${CMAKE_SOURCE_DIR}/submodules)

target_compile_definitions(
Expand Down
4 changes: 4 additions & 0 deletions nano/nano_rpc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ add_executable(nano_rpc entry.cpp)

target_link_libraries(nano_rpc node)

if(NANO_STACKTRACE_BACKTRACE)
target_link_libraries(nano_rpc backtrace)
endif()

target_compile_definitions(
nano_rpc
PUBLIC -DACTIVE_NETWORK=${ACTIVE_NETWORK}
Expand Down
4 changes: 4 additions & 0 deletions nano/test_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ add_library(

target_link_libraries(test_common node gtest)

if(NANO_STACKTRACE_BACKTRACE)
target_link_libraries(test_common backtrace)
endif()

include_directories(${CMAKE_SOURCE_DIR}/submodules)
include_directories(${CMAKE_SOURCE_DIR}/submodules/gtest/googletest/include)
include_directories(${CMAKE_SOURCE_DIR}/submodules/lmdb)

0 comments on commit 1dae662

Please sign in to comment.