Skip to content

Conversation

bmanga
Copy link
Contributor

@bmanga bmanga commented Oct 14, 2020

If the torch target was not already defined before find_package(TorchVision), the CMake config file tries to find it itself.
However, find_package(Torch) ends up overriding the PACKAGE_PREFIX_DIR variable, resulting in the wrong INTERFACE_INCLUDE_DIRECTORIES for the TorchVision target.

Use the variable created at the top of the file instead.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@fmassa fmassa merged commit 3f222e8 into pytorch:master Oct 14, 2020
bryant1410 pushed a commit to bryant1410/vision-1 that referenced this pull request Nov 22, 2020
vfdev-5 pushed a commit to Quansight/vision that referenced this pull request Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants