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

[CMake] DYNAMIC_GRAPH_PLUGINDIR is now relative

For now, the plugins can only be loaded from python, so we just need the
wrap.so to be able to find its plugin.so. For this, there is no need for
a unique hard-coded absolute path to provide an RPATH to
libdynamic-graph.so.

And actually, that RPATH was not even set.
parent e673795f
Pipeline #12127 passed with stage
in 3 minutes and 39 seconds
......@@ -143,10 +143,9 @@ ENDIF(SUFFIX_SO_VERSION)
INSTALL(TARGETS ${PROJECT_NAME} EXPORT ${TARGETS_EXPORT_NAME} DESTINATION lib)
SET(DYNAMIC_GRAPH_PLUGINDIR "${CMAKE_INSTALL_PREFIX}/lib/${PROJECT_NAME}-plugins")
SET(DYNAMIC_GRAPH_PLUGINDIR "lib/${PROJECT_NAME}-plugins")
SET(PACKAGE_EXTRA_MACROS "set(DYNAMIC_GRAPH_PLUGINDIR ${DYNAMIC_GRAPH_PLUGINDIR})")
SET(PKG_CONFIG_EXTRA "plugindir=${DYNAMIC_GRAPH_PLUGINDIR}")
SET(CMAKE_INSTALL_RPATH "${DYNAMIC_GRAPH_PLUGINDIR}")
ADD_SUBDIRECTORY(src)
IF(BUILD_TESTING)
......
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