From eb9ec1f984f9ff8b1dd26373138ef6b9fce9ab47 Mon Sep 17 00:00:00 2001 From: Crozzers Date: Mon, 11 Jul 2022 12:34:53 +0100 Subject: [PATCH] Fix manylinux wheels not building (issue #265) --- swig/python/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swig/python/CMakeLists.txt b/swig/python/CMakeLists.txt index 56321d682..3a5c38fc4 100644 --- a/swig/python/CMakeLists.txt +++ b/swig/python/CMakeLists.txt @@ -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) @@ -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)