Rename target from pybind11::pybind11 to pybind11::module
Makes room for an eventual pybind11::embedded target.
diff --git a/docs/compiling.rst b/docs/compiling.rst
index ccb198b..143d4a3 100644
--- a/docs/compiling.rst
+++ b/docs/compiling.rst
@@ -142,7 +142,7 @@
----------------------------------
When using a version of CMake greater than 3.0, pybind11 can additionally
-be used as a special *interface library* . The target ``pybind11::pybind11``
+be used as a special *interface library* . The target ``pybind11::module``
is available with pybind11 headers, Python headers and libraries as needed,
and C++ compile definitions attached. This target is suitable for linking
to an independently constructed (through ``add_library``, not
@@ -156,7 +156,7 @@
find_package(pybind11 REQUIRED) # or add_subdirectory(pybind11)
add_library(example MODULE main.cpp)
- target_link_libraries(example PRIVATE pybind11::pybind11)
+ target_link_libraries(example PRIVATE pybind11::module)
set_target_properties(example PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}"
SUFFIX "${PYTHON_MODULE_EXTENSION}")