From 6e20554622f2dcf2ded4f349be4dfefff60112fd Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Tue, 27 Jul 2021 11:41:13 +0200 Subject: [PATCH] Update Buildmanif.cmake --- cmake/Buildmanif.cmake | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cmake/Buildmanif.cmake b/cmake/Buildmanif.cmake index 58ded905d..4b9d61e80 100644 --- a/cmake/Buildmanif.cmake +++ b/cmake/Buildmanif.cmake @@ -4,13 +4,20 @@ include(YCMEPHelper) +# 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() + set(BUILD_PYTHON_BINDINGS OFF) +endif() + ycm_ep_helper(manif TYPE GIT STYLE GITHUB REPOSITORY artivis/manif.git TAG master COMPONENT external FOLDER src - CMAKE_ARGS -DBUILD_TESTING:BOOL=OFF -DBUILD_EXAMPLES:BOOL=OFF -DBUILD_PYTHON_BINDINGS:BOOL=ON) + CMAKE_ARGS -DBUILD_TESTING:BOOL=OFF -DBUILD_EXAMPLES:BOOL=OFF -DBUILD_PYTHON_BINDINGS:BOOL=${BUILD_PYTHON_BINDINGS}) set(manif_CONDA_PKG_NAME manif) set(manif_CONDA_PKG_CONDA_FORGE_OVERRIDE ON)