mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-28 08:02:00 +00:00
fix: typo in documentation (#5284)
This commit is contained in:
parent
723307283e
commit
916778df48
@ -25,7 +25,7 @@ A Python extension module can be created with just a few lines of code:
|
|||||||
find_package(pybind11 CONFIG REQUIRED)
|
find_package(pybind11 CONFIG REQUIRED)
|
||||||
|
|
||||||
pybind11_add_module(example example.cpp)
|
pybind11_add_module(example example.cpp)
|
||||||
install(TARGET example DESTINATION .)
|
install(TARGETS example DESTINATION .)
|
||||||
|
|
||||||
(You use the ``add_subdirectory`` instead, see the example in :ref:`cmake`.) In
|
(You use the ``add_subdirectory`` instead, see the example in :ref:`cmake`.) In
|
||||||
this example, the code is located in a file named :file:`example.cpp`. Either
|
this example, the code is located in a file named :file:`example.cpp`. Either
|
||||||
|
Loading…
Reference in New Issue
Block a user