Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit e9b8450

Browse files
committed
[CMake] depend on eigenpy only if we build the python interface
1 parent 979c857 commit e9b8450

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ SET(PKG_CONFIG_ADDITIONAL_VARIABLES
4242

4343
SETUP_PROJECT()
4444
# Search for dependencies.
45-
ADD_REQUIRED_DEPENDENCY("eigenpy")
4645
ADD_REQUIRED_DEPENDENCY("pinocchio >= 1.3.0")
4746
ADD_REQUIRED_DEPENDENCY("dynamic-graph >= 3.0.0")
4847
ADD_REQUIRED_DEPENDENCY("sot-core >= 3.0.0")
@@ -56,6 +55,7 @@ IF(BUILD_PYTHON_INTERFACE)
5655
ADD_REQUIRED_DEPENDENCY("dynamic-graph-python >= 3.0.0")
5756
SET(BOOST_COMPONENTS ${BOOST_COMPONENTS} python)
5857
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})
58+
ADD_REQUIRED_DEPENDENCY("eigenpy")
5959
ENDIF(BUILD_PYTHON_INTERFACE)
6060

6161

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ FOREACH(lib ${plugins})
4343
TARGET_LINK_LIBRARIES(${libname} ${Boost_LIBRARIES})
4444

4545
PKG_CONFIG_USE_DEPENDENCY(${libname} pinocchio)
46-
PKG_CONFIG_USE_DEPENDENCY(${libname} eigenpy)
4746
PKG_CONFIG_USE_DEPENDENCY(${libname} sot-core)
4847
PKG_CONFIG_USE_DEPENDENCY(${libname} dynamic-graph)
4948

5049
INSTALL(TARGETS ${libname} DESTINATION ${DYNAMIC_GRAPH_PLUGINDIR})
5150

5251
# build python submodule
5352
IF(BUILD_PYTHON_INTERFACE)
53+
PKG_CONFIG_USE_DEPENDENCY(${libname} eigenpy)
5454
STRING(REPLACE - _ PYTHON_LIBRARY_NAME ${lib})
5555

5656
DYNAMIC_GRAPH_PYTHON_MODULE("sot/dynamics_pinocchio/${PYTHON_LIBRARY_NAME}"

0 commit comments

Comments
 (0)