From acf3df7da66cacb3ff2730f25e80dcaf9bdc52cd Mon Sep 17 00:00:00 2001 From: 0xloem <0xloem@gmail.com> Date: Sat, 12 Dec 2020 15:30:44 -0500 Subject: [PATCH] Force python to link with the right kind of libraries --- dbus/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dbus/CMakeLists.txt b/dbus/CMakeLists.txt index a0ff7d21..2c078750 100644 --- a/dbus/CMakeLists.txt +++ b/dbus/CMakeLists.txt @@ -105,6 +105,11 @@ set(gattlib_LIBS ${GLIB_LDFLAGS} ${GIO_UNIX_LDFLAGS}) # Add Python Support # if(GATTLIB_PYTHON_INTERFACE) + if(GATTLIB_SHARED_LIB) + set(Python_USE_STATIC_LIBS FALSE) + else() + set(Python_USE_STATIC_LIBS TRUE) + endif() find_package(Python COMPONENTS Interpreter Development) if (Python_Development_FOUND) include_directories(${Python_INCLUDE_DIRS})