From b6974aa6c89fd2c66c9c6fd0e3da701124bb42ed Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Tue, 23 Mar 2021 10:34:36 +0100 Subject: [PATCH 1/2] Fix Python bindings on Windows --- doc/release/yarp_3_4/fix_python_bindings_windows.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 doc/release/yarp_3_4/fix_python_bindings_windows.md diff --git a/doc/release/yarp_3_4/fix_python_bindings_windows.md b/doc/release/yarp_3_4/fix_python_bindings_windows.md new file mode 100644 index 00000000000..5e9df522156 --- /dev/null +++ b/doc/release/yarp_3_4/fix_python_bindings_windows.md @@ -0,0 +1,6 @@ +fix_python_bindings_windows {#yarp_3_4} +-------------- + +## Build System + +* Fixed the build of Python bindings on Windows (https://github.com/robotology/yarp/pull/2525). From 61ecb9272937472fc9c6ce01d2ec879306991edc Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Tue, 23 Mar 2021 10:36:58 +0100 Subject: [PATCH 2/2] Update CMakeLists.txt --- bindings/python/CMakeLists.txt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index f7f446df6f2..c658906b1b1 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -12,12 +12,6 @@ set(CMAKE_SWIG_FLAGS "-module;yarp;-threads;${SWIG_COMMON_FLAGS}") find_package(Python3 COMPONENTS Interpreter Development REQUIRED) -## in Windows it seems necessary to declare explictly the link_directory -if(WIN32) - get_filename_component(Python3_DIR ${Python3_LIBRARY} DIRECTORY) - link_directories(${Python3_DIR}) -endif() - set(CMAKE_SWIG_OUTDIR "${CMAKE_BINARY_DIR}/lib/python3") set(SWIG_OUTFILE_DIR "${CMAKE_CURRENT_BINARY_DIR}")