We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 97cecf2 + eb9ec1f commit 16fe6ebCopy full SHA for 16fe6eb
swig/python/CMakeLists.txt
@@ -1,4 +1,4 @@
1
-find_package(Python3 COMPONENTS Interpreter Development)
+find_package(Python3 COMPONENTS Interpreter Development.Module)
2
3
# Handle where to install the resulting Python package
4
if(CALL_FROM_SETUP_PY)
@@ -22,7 +22,7 @@ swig_add_library(bindings
22
../pocketsphinx.i
23
)
24
# Link the bindings with pocketsphinx and Python
25
-target_link_libraries(bindings PRIVATE pocketsphinx Python3::Python)
+target_link_libraries(bindings PRIVATE pocketsphinx Python3::Module)
26
# Build the library in the proper place and not the weird random CMake place
27
set_target_properties(bindings PROPERTIES
28
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/pocketsphinx5)
0 commit comments