Skip to content

Commit 886e72b

Browse files
author
Benjamin Chrétien
committed
Fix path of plugin dir
1 parent 51dbb80 commit 886e72b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
# Define the directory where plug-ins will be installed.
2020
ADD_DEFINITIONS(-DPLUGIN_PATH="${LIBRARY_OUTPUT_PATH}")
2121

22+
# Define the directory where plug-ins will be installed.
23+
GET_FILENAME_COMPONENT(RELPLUGINDIR ${ROBOPTIM_CORE_PLUGINDIR} NAME)
24+
SET(PLUGINDIR ${CMAKE_INSTALL_LIBDIR}/${RELPLUGINDIR})
25+
2226
MACRO(NLOPT_PLUGIN NAME)
2327
ADD_LIBRARY(roboptim-core-plugin-${NAME} MODULE ${NAME}.cc ${HEADERS})
2428
PKG_CONFIG_USE_COMPILE_DEPENDENCY(roboptim-core-plugin-${NAME} roboptim-core)
@@ -27,7 +31,7 @@ MACRO(NLOPT_PLUGIN NAME)
2731
PREFIX ""
2832
SOVERSION 3.1.0)
2933
INSTALL(TARGETS roboptim-core-plugin-${NAME}
30-
DESTINATION ${ROBOPTIM_CORE_PLUGINDIR})
34+
DESTINATION ${PLUGINDIR})
3135
ENDMACRO()
3236

3337
# NLP solver

0 commit comments

Comments
 (0)