-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8efda6b
commit 9635cc3
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |