Skip to content

Commit

Permalink
Link Python bindings to Python::Module and not Python::Python to prev…
Browse files Browse the repository at this point in the history
…ent Python bindings segfault on macOS (#987)
  • Loading branch information
traversaro authored Oct 3, 2024
1 parent fb23d1d commit db8dfcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if(CREATE_PYTHON)
swig_add_library(icub_python
LANGUAGE python
SOURCES icub.i)
target_link_libraries(${SWIG_MODULE_icub_python_REAL_NAME} Python::Python ${ICUB_SWIG_LIBRARIES})
target_link_libraries(${SWIG_MODULE_icub_python_REAL_NAME} Python::Module ${ICUB_SWIG_LIBRARIES})
set_target_properties(${SWIG_MODULE_icub_python_REAL_NAME} PROPERTIES SWIG_USE_TARGET_INCLUDE_DIRECTORIES TRUE)

# installation path is determined reliably on most platforms using distutils
Expand Down

0 comments on commit db8dfcb

Please sign in to comment.