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

[HIPIFY][SWDEV-390802][build][fix] Hipify scripts and binary path updated in hipify-clang.txt #816

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

raramakr
Copy link
Contributor

As part of SWDEV-368821, the scripts and binary will get installed under <Install_Prefix>/bin folder But the packaging txt file is referring the old path <Install_Prefix>. Corrected the same.
CMAKE_INSTALL_PREFIX is used by default if the DESTINATION is a relative path. Changed the DESTINATION to relative path

…pdated in hipify-clang.txt

As part of SWDEV-368821, the scripts and binaries will get installed under <Install_Prefix>/bin folder
But the packaging txt file is referring the old path <Install_Prefix>. Corrected the same.
CMAKE_INSTALL_PREFIX is used by default if the DESTINATION is a relative path.
Changed the DESTINATION to relative path

install(TARGETS hipify-clang DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
install(TARGETS hipify-clang DESTINATION bin)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't it be

install(TARGETS hipify-clang DESTINATION $(HIPIFY_BIN_INSTALL_PATH))

instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By default ${CMAKE_INSTALL_PREFIX} will be added to install command DESTINATION, if the path is relative(ex: bin)
Better to use relative path in destination , rather than absolute path
https://cmake.org/cmake/help/latest/command/install.html

@emankov emankov requested a review from searlmc1 March 28, 2023 11:39
@emankov emankov added fix It fixes bug build Building issue/fix package Packaging issue/fix labels Mar 28, 2023
Copy link
Collaborator

@emankov emankov 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!

@emankov emankov merged commit 686e765 into ROCm:amd-staging Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Building issue/fix fix It fixes bug package Packaging issue/fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants