Skip to content

Commit

Permalink
Fixed issue with rpath not being set while making debian package with…
Browse files Browse the repository at this point in the history
… cpack
  • Loading branch information
smistad committed Jan 13, 2021
1 parent f2e8072 commit ad925e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/FixRPaths.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file(GLOB installedSOs "${CMAKE_INSTALL_PREFIX}/fast/lib/*.so*")
file(GLOB installedSOs "$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/fast/lib/*.so*")
foreach(SO ${installedSOs})
if(SO MATCHES "^.*librealsense.*$")
message("-- Setting runtime path of ${SO} and stripping..")
Expand Down
2 changes: 1 addition & 1 deletion cmake/InstallFAST.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ else()
COMPONENT fast
)
# Fix RPaths on install
install(SCRIPT cmake/FixRPaths.cmake)
install(SCRIPT cmake/FixRPaths.cmake COMPONENT fast)
endif()

# Install Qt plugins
Expand Down

0 comments on commit ad925e6

Please sign in to comment.