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})