Skip to content

Commit

Permalink
[CMake] add missing RPATH for plugins to link to each-other
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Mar 12, 2021
1 parent 15f2f88 commit ecb827d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Copyright 2010, 2020, JRL, CNRS/AIST, LAAS-CNRS
# Copyright 2010-2021, JRL, CNRS/AIST, LAAS-CNRS
# François Bleibel
# Olivier Stasse
# Florent Lamiraux
# Guilhem Saurel


# ROS buildfarm uses isolated environments, in which the build rpath is used
SET(BUILD_WITH_INSTALL_RPATH TRUE)

SET(plugins
zmpreffromcom
force-compensation
Expand All @@ -24,6 +28,7 @@ SET(mass-apparent_plugins_deps integrator-force)
FOREACH(plugin ${plugins})
GET_FILENAME_COMPONENT(LIBRARY_NAME ${plugin} NAME)
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${plugin})
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES INSTALL_RPATH $ORIGIN)

IF(SUFFIX_SO_VERSION)
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
Expand Down

0 comments on commit ecb827d

Please sign in to comment.