diff --git a/python/ndcurves/CMakeLists.txt b/python/ndcurves/CMakeLists.txt index ca747181..dc64c733 100644 --- a/python/ndcurves/CMakeLists.txt +++ b/python/ndcurves/CMakeLists.txt @@ -12,11 +12,9 @@ SET(wrap ${PROJECT_NAME}_wrap) ADD_LIBRARY(${wrap} SHARED ${${PROJECT_NAME}_WRAP_SOURCES}) SET_TARGET_PROPERTIES(${wrap} PROPERTIES OUTPUT_NAME ${PROJECT_NAME} PREFIX "") TARGET_COMPILE_OPTIONS(${wrap} PRIVATE "-Wno-conversion") +TARGET_LINK_LIBRARIES(${wrap} ${PROJECT_NAME}) TARGET_LINK_LIBRARIES(${wrap} eigenpy::eigenpy) -TARGET_LINK_LIBRARIES(${wrap} Boost::serialization) -IF(CURVES_WITH_PINOCCHIO_SUPPORT) - TARGET_LINK_LIBRARIES(${wrap} pinocchio::pinocchio) -ENDIF(CURVES_WITH_PINOCCHIO_SUPPORT) +TARGET_LINK_BOOST_PYTHON(${wrap}) IF(APPLE) # We need to change the extension for python bindings