Commit 0b6e6634 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

[python] use Boost system.

parent ce8c1534
......@@ -80,7 +80,7 @@ ADD_PROJECT_DEPENDENCY(Boost REQUIRED)
find_package(Boost REQUIRED COMPONENTS filesystem unit_test_framework chrono timer)
if (BUILD_PYTHON_INTERFACE)
FINDPYTHON()
set(BOOST_COMPONENTS python)
set(BOOST_COMPONENTS system python)
search_for_boost()
endif ()
......
......@@ -98,7 +98,7 @@ SET(${LIBRARY_NAME}_SOURCES
)
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${${LIBRARY_NAME}_SOURCES} ${${LIBRARY_NAME}_HEADERS})
TARGET_INCLUDE_DIRECTORIES(${LIBRARY_NAME} SYSTEM PRIVATE "${Boost_INCLUDE_DIRS}" ${PYTHON_INCLUDE_DIRS})
TARGET_INCLUDE_DIRECTORIES(${LIBRARY_NAME} SYSTEM PRIVATE ${PYTHON_INCLUDE_DIRS})
TARGET_INCLUDE_DIRECTORIES(${LIBRARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}/src" "${CMAKE_CURRENT_BINARY_DIR}")
IF(WIN32)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} PUBLIC ${PYTHON_LIBRARY})
......@@ -113,8 +113,10 @@ IF(ENABLE_DOXYGEN_AUTODOC)
ENDIF()
TARGET_LINK_BOOST_PYTHON(${LIBRARY_NAME} PUBLIC)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} PUBLIC ${PROJECT_NAME} ${BOOST_system_LIBRARY})
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} PUBLIC eigenpy::eigenpy)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} PUBLIC
${PROJECT_NAME}
eigenpy::eigenpy
Boost::system)
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES
PREFIX ""
......
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