Skip to content

Commit

Permalink
Setting RPATH for sexpp-cli (ref rnpgp/rnp#2153)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Jun 15, 2024
1 parent b58b9e4 commit 08755ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
# Build of sexp dll with MSVC is not supported
exclude:
- { os: windows-2019, env: { }, shared: on }
- { os: windows-2022, env: { }, shared: on }

env: ${{ matrix.env }}
steps:
Expand Down
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ if (WITH_SEXP_CLI)
RUNTIME_OUTPUT_NAME sexpp
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
)
if (APPLE AND BUILD_SHARED_LIBS)
# Since cmd line tools version 2397 dyld doesn't look in ../lib
# See https://github.com/rnpgp/rnp/issues/2153 and
# https://developer.apple.com/forums/thread/737920 for the details.
set_target_properties(sexpp-cli PROPERTIES INSTALL_RPATH "@executable_path/../lib")
endif(APPLE AND BUILD_SHARED_LIBS)
endif (WITH_SEXP_CLI)


Expand Down

0 comments on commit 08755ad

Please sign in to comment.