Skip to content

Commit 4a1d1fa

Browse files
committed
(hotfix) use pybind11_add_module
1 parent 0722759 commit 4a1d1fa

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ find_package(pybind11 CONFIG REQUIRED)
1414

1515
# Add a library using FindPython's tooling (pybind11 also provides a helper like
1616
# this)
17-
python_add_library(_core MODULE src/main.cpp WITH_SOABI)
18-
target_link_libraries(_core PRIVATE pybind11::headers)
17+
pybind11_add_module(_core src/main.cpp)
1918

2019
# This is passing in the version as a define just as an example
2120
target_compile_definitions(_core PRIVATE VERSION_INFO=${PROJECT_VERSION})

0 commit comments

Comments
 (0)