Skip to content

Commit

Permalink
Create 987.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Oct 3, 2024
1 parent 8efda6b commit 9635cc3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions recipe/987.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From d9e4d54dce88f391d8443b72921083ef2ec7493f Mon Sep 17 00:00:00 2001
From: Silvio Traversaro <[email protected]>
Date: Thu, 3 Oct 2024 10:36:52 +0200
Subject: [PATCH] Link Python bindings to Python::Module and not Python::Python

---
bindings/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt
index 9d47b06b79..fcda21d03a 100644
--- a/bindings/CMakeLists.txt
+++ b/bindings/CMakeLists.txt
@@ -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

0 comments on commit 9635cc3

Please sign in to comment.