Force python to link with the right kind of libraries

pull/197/head dev
0xloem 2020-12-12 15:30:44 -05:00 committed by Olivier Martin
parent 6dcf6b904e
commit acf3df7da6
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,11 @@ set(gattlib_LIBS ${GLIB_LDFLAGS} ${GIO_UNIX_LDFLAGS})
# Add Python Support # Add Python Support
# #
if(GATTLIB_PYTHON_INTERFACE) 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) find_package(Python COMPONENTS Interpreter Development)
if (Python_Development_FOUND) if (Python_Development_FOUND)
include_directories(${Python_INCLUDE_DIRS}) include_directories(${Python_INCLUDE_DIRS})