Commit d73e277d authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] set RPATH for plugins

to fix debian packages creation on ROS buildfarm:

00:12:11 dpkg-shlibdeps: error: cannot find library libtracer.so.4.3.1 needed by
debian/ros-noetic-dynamic-graph/opt/ros/noetic/lib/dynamic-graph-plugins/libtracer-real-time.so.4.3.1
(ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
parent 2226e694
Pipeline #12514 passed with stage
in 3 minutes and 49 seconds
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
SET(plugins
traces/tracer
traces/tracer-real-time
......@@ -12,6 +14,7 @@ FOREACH(plugin ${plugins})
IF(SUFFIX_SO_VERSION)
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
ENDIF(SUFFIX_SO_VERSION)
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES INSTALL_RPATH $ORIGIN)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${PROJECT_NAME} ${${LIBRARY_NAME}_deps})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment