[ci,cmake]Find boost with given python version
@@ -26,7 +26,7 @@ if(${PYTHON_BINDINGS})
target_compile_options(toppra_int PRIVATE -DBUILD_WITH_PINOCCHIO)
target_link_libraries(toppra_int PUBLIC pinocchio::pinocchio)
if(DEFINED PINOCCHIO_WITH_PYTHON_INTERFACE)
- find_package(Boost REQUIRED COMPONENTS python3)
+ find_package(Boost REQUIRED COMPONENTS python${PYTHON_VERSION})
target_compile_options(toppra_int PRIVATE -DPINOCCHIO_WITH_PYTHON_INTERFACE)
target_link_libraries(toppra_int PUBLIC Boost::python3)
endif()
