Skip to content

Conversation

@prateek9623
Copy link
Contributor

This PR adds the following features:

  • add target tvm to a CMake export group, which enables its linkage with another target with another target group.
  • adds support for cmake find_package

@jroesch
Copy link
Member

jroesch commented Feb 8, 2022

cc @tkonolige can you take a look at this one?

Copy link
Contributor

@tkonolige tkonolige left a 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.

@prateek9623
Copy link
Contributor Author

@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:

configure_package_config_file(

@prateek9623
Copy link
Contributor Author

@tkonolige done with requested changes

Copy link
Contributor

@tkonolige tkonolige left a 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!

@jroesch jroesch merged commit bd152f7 into apache:main Feb 17, 2022
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
* 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
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