From c165be5a5e71bf704f4fa971a6c82cf1d24b76db Mon Sep 17 00:00:00 2001 From: KeVteL Date: Mon, 13 Jan 2025 14:52:10 +0100 Subject: [PATCH] Fixed build system now installs the .so in /usr/lib/pythonX.Y/lib-dynload /usr/bin/... was the wrong place the .so is a shared library not a shared binary therefore: COMPONENT lib instead of: COMPONENT bin Signed-off-by: Kevin Vu te Laar --- clients/python-wrapper/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/clients/python-wrapper/CMakeLists.txt b/clients/python-wrapper/CMakeLists.txt index 451aa929f..706ca3ee0 100644 --- a/clients/python-wrapper/CMakeLists.txt +++ b/clients/python-wrapper/CMakeLists.txt @@ -8,14 +8,14 @@ find_package(Python3 COMPONENTS Interpreter Development REQUIRED) message(STATUS "Found Python version: ${Python_VERSION}") message(STATUS "Python major version: ${Python_VERSION_MAJOR}") message(STATUS "Python minor version: ${Python_VERSION_MINOR}") -message(STATUS "Python so install directory: /usr/bin/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/lib-dynload") +message(STATUS "Python .so install directory: /usr/lib/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/lib-dynload") -pybind11_add_module(villas-python-wrapper villas-python-wrapper.cpp) -target_link_libraries(villas-python-wrapper PUBLIC villas) +pybind11_add_module(villas_node villas-python-wrapper.cpp) +target_link_libraries(villas_node PUBLIC villas) install( - TARGETS villas-python-wrapper - COMPONENT bin + TARGETS villas_node + COMPONENT lib RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - LIBRARY DESTINATION /usr/bin/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/lib-dynload + LIBRARY DESTINATION /usr/lib/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/lib-dynload )