Skip to content

Commit 2ca3279

Browse files
authored
Update cmake target name in README (#1837)
1 parent 791c172 commit 2ca3279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ Installation From source:
7575
make
7676
make install
7777
78-
Once installed, the library can be accessed in cmake (after properly configuring ``CMAKE_PREFIX_PATH``) via the :code:`TorchVision::Vision` target:
78+
Once installed, the library can be accessed in cmake (after properly configuring ``CMAKE_PREFIX_PATH``) via the :code:`TorchVision::TorchVision` target:
7979

8080
.. code:: rest
8181
8282
find_package(TorchVision REQUIRED)
83-
target_link_libraries(my-target TorchVision::Vision)
83+
target_link_libraries(my-target PUBLIC TorchVision::TorchVision)
8484
8585
The ``TorchVision`` package will also automatically look for the ``Torch`` and ``pybind11`` packages and add them as dependencies to ``my-target``,
8686
so make sure that they are also available to cmake via the ``CMAKE_PREFIX_PATH``.

0 commit comments

Comments
 (0)