Skip to content

Commit ed9e114

Browse files
committed
[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.
1 parent e673795 commit ed9e114

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,9 @@ ENDIF(SUFFIX_SO_VERSION)
143143
INSTALL(TARGETS ${PROJECT_NAME} EXPORT ${TARGETS_EXPORT_NAME} DESTINATION lib)
144144
145145
146-
SET(DYNAMIC_GRAPH_PLUGINDIR "${CMAKE_INSTALL_PREFIX}/lib/${PROJECT_NAME}-plugins")
146+
SET(DYNAMIC_GRAPH_PLUGINDIR "lib/${PROJECT_NAME}-plugins")
147147
SET(PACKAGE_EXTRA_MACROS "set(DYNAMIC_GRAPH_PLUGINDIR ${DYNAMIC_GRAPH_PLUGINDIR})")
148148
SET(PKG_CONFIG_EXTRA "plugindir=${DYNAMIC_GRAPH_PLUGINDIR}")
149-
SET(CMAKE_INSTALL_RPATH "${DYNAMIC_GRAPH_PLUGINDIR}")
150149
151150
ADD_SUBDIRECTORY(src)
152151
IF(BUILD_TESTING)

0 commit comments

Comments
 (0)