We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0722759 commit 4a1d1faCopy full SHA for 4a1d1fa
1 file changed
CMakeLists.txt
@@ -14,8 +14,7 @@ find_package(pybind11 CONFIG REQUIRED)
14
15
# Add a library using FindPython's tooling (pybind11 also provides a helper like
16
# this)
17
-python_add_library(_core MODULE src/main.cpp WITH_SOABI)
18
-target_link_libraries(_core PRIVATE pybind11::headers)
+pybind11_add_module(_core src/main.cpp)
19
20
# This is passing in the version as a define just as an example
21
target_compile_definitions(_core PRIVATE VERSION_INFO=${PROJECT_VERSION})
0 commit comments