Skip to content

Commit 16fe6eb

Browse files
authored
Merge pull request #268 from Crozzers/master
Fix manylinux wheels not building (issue #265)
2 parents 97cecf2 + eb9ec1f commit 16fe6eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swig/python/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
find_package(Python3 COMPONENTS Interpreter Development)
1+
find_package(Python3 COMPONENTS Interpreter Development.Module)
22

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

0 commit comments

Comments
 (0)