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

[CMake] Fix order of GNUInstallDirs module #15966

Merged
merged 1 commit into from Oct 25, 2023

Conversation

syalavarthi
Copy link
Contributor

In CMakeLists.txt, the variables CMAKE_INSTALL_

are referenced before the execution of GNUInstallDirs module. This order is incorrect as the variables are defined by the GNUInstallDirs module.

Since the variables are undefined, INTERFACE_INCLUDE_DIRECTORIES property is not set in the tvmTargets.cmake. This causes external applications based on TVM unable to find TVM runtime headers.

In CMakeLists.txt, the variables CMAKE_INSTALL_<dir> are
referenced before the execution of GNUInstallDirs module.
This order is incorrect as the variables are defined by
the GNUInstallDirs module.

Since the variables are undefined, INTERFACE_INCLUDE_DIRECTORIES
property is not set in the tvmTargets.cmake. This causes external
applications based on TVM unable to find TVM runtime headers.

Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
Copy link
Contributor

@cbalint13 cbalint13 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 @syalavarthi !

@Hzfengsy Hzfengsy merged commit 3c4ee86 into apache:main Oct 25, 2023
19 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.

None yet

4 participants