From 4a1d1fa2059d1ef5ae5861c073fd16c0745a42c4 Mon Sep 17 00:00:00 2001 From: Anastasios Zouzias Date: Tue, 14 Oct 2025 12:03:34 +0000 Subject: [PATCH] (hotfix) use pybind11_add_module --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d50a5ff..d0ee01f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,8 +14,7 @@ find_package(pybind11 CONFIG REQUIRED) # Add a library using FindPython's tooling (pybind11 also provides a helper like # this) -python_add_library(_core MODULE src/main.cpp WITH_SOABI) -target_link_libraries(_core PRIVATE pybind11::headers) +pybind11_add_module(_core src/main.cpp) # This is passing in the version as a define just as an example target_compile_definitions(_core PRIVATE VERSION_INFO=${PROJECT_VERSION})