We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51dbb80 commit 886e72bCopy full SHA for 886e72b
1 file changed
src/CMakeLists.txt
@@ -19,6 +19,10 @@
19
# Define the directory where plug-ins will be installed.
20
ADD_DEFINITIONS(-DPLUGIN_PATH="${LIBRARY_OUTPUT_PATH}")
21
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
+
26
MACRO(NLOPT_PLUGIN NAME)
27
ADD_LIBRARY(roboptim-core-plugin-${NAME} MODULE ${NAME}.cc ${HEADERS})
28
PKG_CONFIG_USE_COMPILE_DEPENDENCY(roboptim-core-plugin-${NAME} roboptim-core)
@@ -27,7 +31,7 @@ MACRO(NLOPT_PLUGIN NAME)
31
PREFIX ""
32
SOVERSION 3.1.0)
29
33
INSTALL(TARGETS roboptim-core-plugin-${NAME}
30
- DESTINATION ${ROBOPTIM_CORE_PLUGINDIR})
34
+ DESTINATION ${PLUGINDIR})
35
ENDMACRO()
36
37
# NLP solver
0 commit comments