Skip to content

Commit

Permalink
Update cmake target name in README (#1837)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmanga authored Feb 3, 2020
1 parent 791c172 commit 2ca3279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ Installation From source:
make
make install
Once installed, the library can be accessed in cmake (after properly configuring ``CMAKE_PREFIX_PATH``) via the :code:`TorchVision::Vision` target:
Once installed, the library can be accessed in cmake (after properly configuring ``CMAKE_PREFIX_PATH``) via the :code:`TorchVision::TorchVision` target:

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

0 comments on commit 2ca3279

Please sign in to comment.