Unverified Commit 2ca3279c authored by bmanga's avatar bmanga Committed by GitHub
Browse files

Update cmake target name in README (#1837)

parent 791c172a
...@@ -75,12 +75,12 @@ Installation From source: ...@@ -75,12 +75,12 @@ Installation From source:
make make
make install 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 .. code:: rest
find_package(TorchVision REQUIRED) 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``, 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``. so make sure that they are also available to cmake via the ``CMAKE_PREFIX_PATH``.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment