Skip to content

Commit

Permalink
Fix path of plugin dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Chrétien committed Jun 27, 2015
1 parent 51dbb80 commit 886e72b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
# Define the directory where plug-ins will be installed.
ADD_DEFINITIONS(-DPLUGIN_PATH="${LIBRARY_OUTPUT_PATH}")

# Define the directory where plug-ins will be installed.
GET_FILENAME_COMPONENT(RELPLUGINDIR ${ROBOPTIM_CORE_PLUGINDIR} NAME)
SET(PLUGINDIR ${CMAKE_INSTALL_LIBDIR}/${RELPLUGINDIR})

MACRO(NLOPT_PLUGIN NAME)
ADD_LIBRARY(roboptim-core-plugin-${NAME} MODULE ${NAME}.cc ${HEADERS})
PKG_CONFIG_USE_COMPILE_DEPENDENCY(roboptim-core-plugin-${NAME} roboptim-core)
Expand All @@ -27,7 +31,7 @@ MACRO(NLOPT_PLUGIN NAME)
PREFIX ""
SOVERSION 3.1.0)
INSTALL(TARGETS roboptim-core-plugin-${NAME}
DESTINATION ${ROBOPTIM_CORE_PLUGINDIR})
DESTINATION ${PLUGINDIR})
ENDMACRO()

# NLP solver
Expand Down

0 comments on commit 886e72b

Please sign in to comment.