- 
                Notifications
    
You must be signed in to change notification settings  - Fork 3.7k
 
[CMake] add support for find_package #10097
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
Conversation
2. added cmake package config file
| 
           cc @tkonolige can you take a look at this one?  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @prateek9623 for this PR. It really helps improve the usability of tvm by other projects.
One issue though: the exported config file needs to find_package(Threads REQUIRED) as it is a PUBLIC dependency of tvm.
| 
           @tkonolige I have Threads as the public dependency, and as per PROJECT_CONFIG_FILE it is just to create a temporary file, its content is just moved in line no: Line 655 in dc0550e 
  | 
    
| 
           @tkonolige done with requested changes  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you @prateek9623!
* removed include header path, which are invalid * 1. added target tvm in a cmake export group 2. added cmake package config file * added Threads as public dependency * changed temp config file name for better understanding
This PR adds the following features: