Skip to content

Commit

Permalink
fixup! cmake: Build libbitcoinconsensus library
Browse files Browse the repository at this point in the history
Fix rpath for installed binaries
  • Loading branch information
hebasto committed Dec 16, 2023
1 parent c8e80fc commit 9c2fc1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bench/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ endif()

make_bitcoinconsensus_dll_available(bench_bitcoin)

set_target_properties(bench_bitcoin PROPERTIES
INSTALL_RPATH $ORIGIN/../lib
)

install(TARGETS bench_bitcoin
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
4 changes: 4 additions & 0 deletions src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ endif()

make_bitcoinconsensus_dll_available(test_bitcoin)

set_target_properties(test_bitcoin PROPERTIES
INSTALL_RPATH $ORIGIN/../lib
)

install(TARGETS test_bitcoin
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

0 comments on commit 9c2fc1e

Please sign in to comment.