Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit ecb827d

Browse files
committed
[CMake] add missing RPATH for plugins to link to each-other
1 parent 15f2f88 commit ecb827d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
# Copyright 2010, 2020, JRL, CNRS/AIST, LAAS-CNRS
1+
# Copyright 2010-2021, JRL, CNRS/AIST, LAAS-CNRS
22
# François Bleibel
33
# Olivier Stasse
44
# Florent Lamiraux
55
# Guilhem Saurel
66

7+
8+
# ROS buildfarm uses isolated environments, in which the build rpath is used
9+
SET(BUILD_WITH_INSTALL_RPATH TRUE)
10+
711
SET(plugins
812
zmpreffromcom
913
force-compensation
@@ -24,6 +28,7 @@ SET(mass-apparent_plugins_deps integrator-force)
2428
FOREACH(plugin ${plugins})
2529
GET_FILENAME_COMPONENT(LIBRARY_NAME ${plugin} NAME)
2630
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${plugin})
31+
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES INSTALL_RPATH $ORIGIN)
2732

2833
IF(SUFFIX_SO_VERSION)
2934
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})

0 commit comments

Comments
 (0)