Skip to content

Commit

Permalink
Force python to link with the right kind of libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
xloem authored and oliviermartin committed Dec 13, 2020
1 parent 6dcf6b9 commit acf3df7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dbus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit acf3df7

Please sign in to comment.