From 2ca3279c325cbaab56a87d29135db01d6a6aac46 Mon Sep 17 00:00:00 2001 From: bmanga Date: Mon, 3 Feb 2020 17:16:59 +0100 Subject: [PATCH] Update cmake target name in README (#1837) --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 6a7dd9b401c..85f1e12d6f5 100644 --- a/README.rst +++ b/README.rst @@ -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``.