From c1eb80486c3267e9f2565d57df2113672a07268e Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Tue, 25 Aug 2020 00:14:06 +0200 Subject: [PATCH] [CMake] fix links --- CMakeLists.txt | 2 +- src/dynamic_graph/CMakeLists.txt | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 96bd515..4056455 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,7 @@ SET(${PROJECT_NAME}_SOURCES ADD_LIBRARY(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_SOURCES} ${${PROJECT_NAME}_HEADERS}) -TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} SYSTEM PUBLIC ${PYTHON_INCLUDE_DIRS}) +TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} SYSTEM PUBLIC ${PYTHON_INCLUDE_DIR}) TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PUBLIC $<INSTALL_INTERFACE:include>) TARGET_LINK_LIBRARIES(${PROJECT_NAME} PUBLIC ${PYTHON_LIBRARY} dynamic-graph::dynamic-graph) diff --git a/src/dynamic_graph/CMakeLists.txt b/src/dynamic_graph/CMakeLists.txt index 7c35532..19e38cb 100644 --- a/src/dynamic_graph/CMakeLists.txt +++ b/src/dynamic_graph/CMakeLists.txt @@ -11,10 +11,8 @@ ADD_LIBRARY(${PYTHON_MODULE} MODULE signal-wrapper.cc ) -TARGET_INCLUDE_DIRECTORIES(${PYTHON_MODULE} SYSTEM PUBLIC ${PYTHON_INCLUDE_DIRS}) -TARGET_LINK_LIBRARIES(${PYTHON_MODULE} ${PYTHON_LIBRARY} - dynamic-graph::dynamic-graph Boost::python ${PROJECT_NAME} - eigenpy::eigenpy) +TARGET_LINK_LIBRARIES(${PYTHON_MODULE} PUBLIC ${PROJECT_NAME} eigenpy::eigenpy) +TARGET_LINK_BOOST_PYTHON(${PYTHON_MODULE} PRIVATE) # Remove prefix lib SET_TARGET_PROPERTIES(${PYTHON_MODULE} PROPERTIES PREFIX "") -- GitLab