2021-12-10 09:12:05 +01:00
|
|
|
From 3de1ff0464ccf0f5e88c62330e98cb816c42f7b2 Mon Sep 17 00:00:00 2001
|
2021-10-06 15:24:27 +02:00
|
|
|
From: Christophe Giboudeaux <christophe@krop.fr>
|
|
|
|
Date: Tue, 27 Jul 2021 14:54:00 +0200
|
|
|
|
Subject: [PATCH] Always link to python libraries.
|
|
|
|
|
|
|
|
Change-Id: I687191431adaff55927de353db8f81dfa30ba1b1
|
|
|
|
---
|
2021-12-10 09:12:05 +01:00
|
|
|
diff --git a/sources/shiboken6/cmake/ShibokenHelpers.cmake b/sources/shiboken6/cmake/ShibokenHelpers.cmake
|
2024-02-20 15:23:50 +01:00
|
|
|
index 1a46e5b..6c10c07 100644
|
2021-12-10 09:12:05 +01:00
|
|
|
--- a/sources/shiboken6/cmake/ShibokenHelpers.cmake
|
|
|
|
+++ b/sources/shiboken6/cmake/ShibokenHelpers.cmake
|
2024-02-20 15:23:50 +01:00
|
|
|
@@ -420,13 +420,9 @@ macro(shiboken_compute_python_libraries)
|
2021-10-06 15:24:27 +02:00
|
|
|
"SHIBOKEN_COMPUTE_LIBS" "shiboken_compute_python_libraries"
|
|
|
|
"IS_CALLED_FROM_EXPORT" "" "" ${ARGN})
|
|
|
|
|
|
|
|
- if (NOT SHIBOKEN_PYTHON_LIBRARIES)
|
|
|
|
- set(SHIBOKEN_PYTHON_LIBRARIES "")
|
|
|
|
- endif()
|
|
|
|
-
|
2024-02-20 15:23:50 +01:00
|
|
|
- if(WIN32 AND NOT SHIBOKEN_PYTHON_LIBRARIES)
|
|
|
|
- set(SHIBOKEN_PYTHON_LIBRARIES ${Python_LIBRARIES})
|
2021-10-06 15:24:27 +02:00
|
|
|
- endif()
|
|
|
|
+ # Always link to python libraries.
|
2024-02-20 15:23:50 +01:00
|
|
|
+ message(STATUS "Linking shiboken to ${Python_LIBRARIES}")
|
|
|
|
+ set(SHIBOKEN_PYTHON_LIBRARIES ${Python_LIBRARIES})
|
2021-10-06 15:24:27 +02:00
|
|
|
|
|
|
|
# If the resulting variable
|
|
|
|
# contains a "debug;X;optimized;Y" list like described in shiboken_check_if_limited_api,
|