Commit a05d3e93 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Fix link with dynamics.so

  Do not hard code prefix of dependency, use pkg config.
parent 63f916d1
......@@ -29,12 +29,6 @@ FUNCTION(COMPILE_PLUGIN NAME SOURCES ENTITIES)
PKG_CONFIG_USE_DEPENDENCY(${NAME} sot-core)
PKG_CONFIG_USE_DEPENDENCY(${NAME} jrl-dynamics)
IF (WIN32)
TARGET_LINK_LIBRARIES(${NAME} ${CMAKE_INSTALL_PREFIX}/lib/plugin/dynamic${CMAKE_LINK_LIBRARY_SUFFIX})
ELSE(WIN32)
TARGET_LINK_LIBRARIES(${NAME} ${CMAKE_INSTALL_PREFIX}/lib/plugin/dynamic${CMAKE_SHARED_LIBRARY_SUFFIX})
ENDIF(WIN32)
INSTALL(TARGETS ${NAME} DESTINATION lib/plugin)
# build python submodule
......
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