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}")