Skip to content

Commit

Permalink
Enable compilation of Python bindings of manif and bipedal-locomotion…
Browse files Browse the repository at this point in the history
…-framework also on Windows (#838)
  • Loading branch information
traversaro authored Aug 25, 2021
1 parent 8bc4459 commit 7729f7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions cmake/Buildbipedal-locomotion-framework.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ if(ROBOTOLOGY_USES_PYTHON AND ROBOTOLOGY_GENERATE_CONDA_RECIPES)
list(APPEND bipedal-locomotion-framework_OPTIONAL_CMAKE_ARGS "-DFRAMEWORK_DETECT_ACTIVE_PYTHON_SITEPACKAGES:BOOL=ON")
endif()

# Workaround for https://github.com/robotology/robotology-superbuild/issues/802
if(ROBOTOLOGY_USES_PYTHON AND NOT WIN32)
set(BUILD_PYTHON_BINDINGS ON)
else()
set(BUILD_PYTHON_BINDINGS OFF)
endif()

ycm_ep_helper(bipedal-locomotion-framework TYPE GIT
STYLE GITHUB
REPOSITORY dic-iit/bipedal-locomotion-framework.git
Expand All @@ -61,7 +54,7 @@ ycm_ep_helper(bipedal-locomotion-framework TYPE GIT
-DFRAMEWORK_USE_cppad:BOOL=${ROBOTOLOGY_ENABLE_DYNAMICS_FULL_DEPS}
-DFRAMEWORK_USE_casadi:BOOL=${ROBOTOLOGY_ENABLE_DYNAMICS_FULL_DEPS}
-DFRAMEWORK_USE_LieGroupControllers:BOOL=${ROBOTOLOGY_ENABLE_DYNAMICS_FULL_DEPS}
-DFRAMEWORK_COMPILE_PYTHON_BINDINGS:BOOL=${BUILD_PYTHON_BINDINGS}
-DFRAMEWORK_COMPILE_PYTHON_BINDINGS:BOOL=${ROBOTOLOGY_USES_PYTHON}
${bipedal-locomotion-framework_OPTIONAL_CMAKE_ARGS}
DEPENDS ${bipedal-locomotion-framework_DEPENDS})

Expand All @@ -75,8 +68,5 @@ if(ROBOTOLOGY_USES_PYTHON)
list(APPEND bipedal-locomotion-framework_CONDA_DEPENDENCIES pybind11-abi)
list(APPEND bipedal-locomotion-framework_CONDA_DEPENDENCIES python)
list(APPEND bipedal-locomotion-framework_CONDA_DEPENDENCIES numpy)
# manifpy is not available on Windows on conda-forge, see https://github.com/conda-forge/manif-feedstock/issues/7
if(NOT WIN32)
list(APPEND bipedal-locomotion-framework_CONDA_DEPENDENCIES manifpy)
endif()
list(APPEND bipedal-locomotion-framework_CONDA_DEPENDENCIES manifpy)
endif()
2 changes: 1 addition & 1 deletion cmake/Buildmanif.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

include(YCMEPHelper)

# Workaround for https://github.com/robotology/robotology-superbuild/issues/802
# Workaround for https://github.com/robotology/robotology-superbuild/pull/838#issuecomment-887367047
if(ROBOTOLOGY_USES_PYTHON AND NOT WIN32)
set(BUILD_PYTHON_BINDINGS ON)
else()
Expand Down

0 comments on commit 7729f7e

Please sign in to comment.