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

[Torch] fix external project linkage #1044

Merged
merged 3 commits into from
Jul 18, 2024

Conversation

MatPont
Copy link
Contributor

@MatPont MatPont commented Jul 17, 2024

This PR fixes the link with Torch when TTK is used as a library for another project such that the c++ example in TTK.

It fixes a typo TORCH_FOUND to @TORCH_FOUND@.
Inspired by the ZFP dependency, it sets the Torch_DIR variable for external projects as the value used to make TTK, in order to avoid to set this variable in external projects.
It also changes the c++ version of the c++ example from 14 to 17 because 17 is needed for Torch.

@julien-tierny
Copy link
Collaborator

wonderful, thanks!

@julien-tierny julien-tierny merged commit f955005 into topology-tool-kit:dev Jul 18, 2024
45 checks passed
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