Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions swig/python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(Python3 COMPONENTS Interpreter Development)
find_package(Python3 COMPONENTS Interpreter Development.Module)

# Handle where to install the resulting Python package
if(CALL_FROM_SETUP_PY)
Expand All @@ -22,7 +22,7 @@ swig_add_library(bindings
../pocketsphinx.i
)
# Link the bindings with pocketsphinx and Python
target_link_libraries(bindings PRIVATE pocketsphinx Python3::Python)
target_link_libraries(bindings PRIVATE pocketsphinx Python3::Module)
# Build the library in the proper place and not the weird random CMake place
set_target_properties(bindings PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/pocketsphinx5)
Expand Down