Skip to content

Commit

Permalink
[HIPIFY][ROCm#1853][build] Add execution permission to the rest of au…
Browse files Browse the repository at this point in the history
…xiliary scripts
  • Loading branch information
emankov committed Feb 11, 2025
1 parent 219a166 commit 19b320d
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,27 +176,21 @@ if (NOT HIPIFY_CLANG_TESTS_ONLY)

set(HIPIFY_BIN_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/bin")

install(TARGETS hipify-clang DESTINATION bin)
# Install bin directory in CMAKE_INSTALL_PREFIX path.
install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin
DESTINATION .
PATTERN "*.sh"
PATTERN "findcode.sh" EXCLUDE
PATTERN "findcode_headers.sh" EXCLUDE
PATTERN "findcode_sources.sh" EXCLUDE
PATTERN "findcode_custom.sh" EXCLUDE
PATTERN "finduncodep.sh" EXCLUDE)

set(HIPIFY_LIBEXEC_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBEXECDIR}/hipify")

install(TARGETS hipify-clang DESTINATION bin)

install(
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bin/hipify-perl
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bin/findcode.sh
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bin/findcode_headers.sh
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bin/findcode_sources.sh
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bin/findcode_custom.sh
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bin/finduncodep.sh
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bin/hipconvertinplace.sh
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bin/hipconvertinplace-perl.sh
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bin/hipexamine.sh
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bin/hipexamine-perl.sh
DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/hipify)

# Headers are already included in HIP SDK, so skip those if including HIPIFY in HIP SDK.
Expand Down

0 comments on commit 19b320d

Please sign in to comment.