From d00d885394cfebd2e7c18718b1dde76c35b59cde Mon Sep 17 00:00:00 2001 From: Jeremy Newton Date: Fri, 23 Jun 2023 14:07:21 -0400 Subject: [PATCH 1/6] Fix python script install permissions The keyword "PROGRAMS" should be used in place of "FILES" in order to make sure executable scripts have the correct permissions. Change-Id: I6c287dc1291774ad6d97a04d621957dea0a1b697 Signed-off-by: Jeremy Newton --- rocm_smi/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rocm_smi/CMakeLists.txt b/rocm_smi/CMakeLists.txt index c6085c6..f9b7c41 100755 --- a/rocm_smi/CMakeLists.txt +++ b/rocm_smi/CMakeLists.txt @@ -134,12 +134,10 @@ install(FILES ${COMMON_SRC_ROOT}/include/rocm_smi/${ROCM_SMI_TARGET}Config.h install(FILES ${COMMON_SRC_ROOT}/include/rocm_smi/kfd_ioctl.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/rocm_smi COMPONENT dev) -install(FILES ${COMMON_SRC_ROOT}/python_smi_tools/rsmiBindings.py +install(PROGRAMS ${COMMON_SRC_ROOT}/python_smi_tools/rsmiBindings.py DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/${ROCM_SMI} COMPONENT dev) -install(FILES ${COMMON_SRC_ROOT}/python_smi_tools/rocm_smi.py - PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ - GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_EXECUTE +install(PROGRAMS ${COMMON_SRC_ROOT}/python_smi_tools/rocm_smi.py DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/${ROCM_SMI} COMPONENT dev) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bin/rocm-smi -- 2.40.1