From 97d4d4332e6cf18c7fd2ed2b8a45fd8d6a51be7e Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 3 Jan 2024 15:43:44 -0500 Subject: [PATCH] Fix python binding --- CMakeLists.txt | 2 +- fastshuffle.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1958fd7..2359669 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True) if (WITH_PYTHON) add_subdirectory(vendor/pybind11) add_definitions("-DVERSION_INFO=${VERSION_INFO}") -pybind11_add_module(fastshuffle fastshuffle.cpp) +pybind11_add_module(fastshuffle fastshuffle.cpp shuffle.cpp) install(TARGETS fastshuffle LIBRARY DESTINATION lib) endif() diff --git a/fastshuffle.cpp b/fastshuffle.cpp index 0effeec..0ee8ad6 100644 --- a/fastshuffle.cpp +++ b/fastshuffle.cpp @@ -6,7 +6,7 @@ namespace py = pybind11; -PYBIND11_MODULE(fastmerge, m) { +PYBIND11_MODULE(fastshuffle, m) { m.def("file_shuffle", &shuffle); #ifdef VERSION_INFO