Skip to content

Commit

Permalink
fix: typo in documentation (#5284)
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-sch authored and henryiii committed Aug 13, 2024
1 parent 042c3cf commit f9ae715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/compiling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ A Python extension module can be created with just a few lines of code:
find_package(pybind11 CONFIG REQUIRED)
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
this example, the code is located in a file named :file:`example.cpp`. Either
Expand Down

0 comments on commit f9ae715

Please sign in to comment.