Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use include_directories, to help packaging of C++. #2587

Merged
merged 1 commit into from
Aug 21, 2020

Conversation

vcarpani
Copy link
Contributor

This PR helps packaging the C++ library of torchvision, making its build non dependent of the machine that packaged the library.

The problem is due to the usage of INTERFACE_INCLUDE_DIRECTORIES in the CMakeLists file, since it is not advisable to populate the INSTALL_INTERFACE of the INTERFACE_INCLUDE_DIRECTORIES of a target with paths for dependencies. That would hard-code into installed packages the include directory paths for dependencies as found on the machine the package was made on [source].

Follow up of pull request:
#2446

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 for the PR!

And thanks @bmanga for the review!

@fmassa fmassa merged commit baa592b into pytorch:master Aug 21, 2020
@vcarpani vcarpani deleted the fix-includes branch August 21, 2020 18:12
bryant1410 pushed a commit to bryant1410/vision-1 that referenced this pull request Nov 22, 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.

3 participants