Skip to content

[CMAKE] Update search pattern of config#14686

Merged
leandron merged 1 commit intoapache:mainfrom
tqchen:cmake
Apr 21, 2023
Merged

[CMAKE] Update search pattern of config#14686
leandron merged 1 commit intoapache:mainfrom
tqchen:cmake

Conversation

@tqchen
Copy link
Copy Markdown
Member

@tqchen tqchen commented Apr 20, 2023

This PR updates the search patter of config.cmake to CMAKE_BINARY_DIR. This behavior remains unchanged for TVM build.

The difference only happens when tvm was included as a subdirectory by another project via add_subdirectory.
In such cases, we will search the config.cmake on the root of the parent project rather than the tvm folder.

This PR updates the search patter of config.cmake to CMAKE_BINARY_DIR.
This behavior remains unchanged for TVM build.

The difference only happens when tvm was included as a subdirectory
by another project via add_subdirectory.
In such cases, we will search the config.cmake on the
root of the parent project rather than the tvm folder.
@tvm-bot
Copy link
Copy Markdown
Collaborator

tvm-bot commented Apr 20, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

  • No users to tag found in teams: cmake See #10317 for details

Generated by tvm-bot

@tqchen
Copy link
Copy Markdown
Member Author

tqchen commented Apr 20, 2023

cc @junrushao

Copy link
Copy Markdown
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

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

That makes sense! Thanks for the change!

Copy link
Copy Markdown
Contributor

@leandron leandron left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @tqchen @junrushao

@leandron leandron merged commit af17cfe into apache:main Apr 21, 2023
tqchen added a commit to tqchen/tvm that referenced this pull request Apr 21, 2023
This PR updates the search patter of config.cmake to CMAKE_BINARY_DIR.
This behavior remains unchanged for TVM build.

The difference only happens when tvm was included as a subdirectory
by another project via add_subdirectory.
In such cases, we will search the config.cmake on the
root of the parent project rather than the tvm folder.
junrushao pushed a commit to junrushao/tvm that referenced this pull request Apr 26, 2023
This PR updates the search patter of config.cmake to CMAKE_BINARY_DIR.
This behavior remains unchanged for TVM build.

The difference only happens when tvm was included as a subdirectory
by another project via add_subdirectory.
In such cases, we will search the config.cmake on the
root of the parent project rather than the tvm folder.
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.

4 participants