Skip to content

Commit

Permalink
build: fix RPATH settings to work even if libdir is not "lib"
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Feb 14, 2025
1 parent 2f7274c commit 84868eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/cli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ add_executable(cli

set_target_properties(cli
PROPERTIES
INSTALL_RPATH "\$ORIGIN/../lib"
INSTALL_RPATH "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}"
RUNTIME_OUTPUT_NAME "sharksfin-cli"
)

Expand Down
2 changes: 1 addition & 1 deletion memory/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ add_library(memory

set_target_properties(memory
PROPERTIES
INSTALL_RPATH "\$ORIGIN/../lib"
INSTALL_RPATH "\$ORIGIN"
LIBRARY_OUTPUT_NAME "sharksfin-memory"
)

Expand Down
2 changes: 1 addition & 1 deletion shirakami/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ add_library(shirakami

set_target_properties(shirakami
PROPERTIES
INSTALL_RPATH "\$ORIGIN/../lib"
INSTALL_RPATH "\$ORIGIN"
LIBRARY_OUTPUT_NAME "sharksfin-shirakami"
)

Expand Down

0 comments on commit 84868eb

Please sign in to comment.