Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
sot-dynamic-pinocchio
Commits
ecb827d3
Commit
ecb827d3
authored
Mar 12, 2021
by
Guilhem Saurel
Browse files
[CMake] add missing RPATH for plugins to link to each-other
parent
15f2f888
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
ecb827d3
# Copyright 2010
,
202
0
, JRL, CNRS/AIST, LAAS-CNRS
# Copyright 2010
-
202
1
, 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
...
...
@@ -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
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment