Skip to content

Commit

Permalink
Force RPATH to be embedded within the installed binaires
Browse files Browse the repository at this point in the history
  • Loading branch information
mani-monaj committed Dec 29, 2016
1 parent 95fcd66 commit aef8a5d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bebop_driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ message(STATUS "ARSDK3 INCLUDE_DIR: ${ARSDK_INCLUDE_DIR}")
message(STATUS "ARSDK3 LIB_DIR: ${ARSDK_LIB_DIR}")
message(STATUS "ARSDK3 LIBS: ${ARSDK_LIBS}")

# parrot_arsdk installs its libraries to a folder inside the $CMAKE_INSTALL_PREFIX
# By default, cmake strips the RPATH information when installing a target, which means
# those targets (libbebop, the driver, etc) would not be able to find the ar*.libs unless
# they are added to the LD_LIBRARY_PATH.
# The following line forces CMAKE to embed the RPATH inside the installed targets as well.
# Not the best solution, but it should work.
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)

generate_dynamic_reconfigure_options(
cfg/autogenerated/BebopArdrone3.cfg
)
Expand Down

0 comments on commit aef8a5d

Please sign in to comment.